Lines Matching refs:clen
295 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() argument
303 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart()
478 unsigned int cstart, clen; in __ocfs2_resv_find_window() local
499 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
501 &cstart, &clen); in __ocfs2_resv_find_window()
507 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
509 if (clen == 0) in __ocfs2_resv_find_window()
513 resv->r_len = clen; in __ocfs2_resv_find_window()
552 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
554 &cstart, &clen); in __ocfs2_resv_find_window()
555 if (clen) { in __ocfs2_resv_find_window()
556 best_len = clen; in __ocfs2_resv_find_window()
602 clen = ocfs2_resmap_find_free_bits(resmap, wanted, gap_start, in __ocfs2_resv_find_window()
603 gap_len, &cstart, &clen); in __ocfs2_resv_find_window()
604 if (clen == wanted) { in __ocfs2_resv_find_window()
605 best_len = clen; in __ocfs2_resv_find_window()
608 } else if (clen > best_len) { in __ocfs2_resv_find_window()
609 best_len = clen; in __ocfs2_resv_find_window()
729 int *cstart, int *clen) in ocfs2_resmap_resv_bits() argument
744 if ((resv->r_flags & OCFS2_RESV_FLAG_TMP) || wanted < *clen) in ocfs2_resmap_resv_bits()
745 wanted = *clen; in ocfs2_resmap_resv_bits()
761 *clen = resv->r_len; in ocfs2_resmap_resv_bits()
798 u32 cstart, u32 clen) in ocfs2_resmap_claimed_bits() argument
800 unsigned int cend = cstart + clen - 1; in ocfs2_resmap_claimed_bits()
812 trace_ocfs2_resmap_claimed_bits_begin(cstart, cend, clen, resv->r_start, in ocfs2_resmap_claimed_bits()
823 resv->r_last_len = clen; in ocfs2_resmap_claimed_bits()