Lines Matching refs:clen
287 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() argument
295 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart()
470 unsigned int cstart, clen; in __ocfs2_resv_find_window() local
491 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
493 &cstart, &clen); in __ocfs2_resv_find_window()
499 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
501 if (clen == 0) in __ocfs2_resv_find_window()
505 resv->r_len = clen; in __ocfs2_resv_find_window()
544 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
546 &cstart, &clen); in __ocfs2_resv_find_window()
547 if (clen) { in __ocfs2_resv_find_window()
548 best_len = clen; in __ocfs2_resv_find_window()
594 clen = ocfs2_resmap_find_free_bits(resmap, wanted, gap_start, in __ocfs2_resv_find_window()
595 gap_len, &cstart, &clen); in __ocfs2_resv_find_window()
596 if (clen == wanted) { in __ocfs2_resv_find_window()
597 best_len = clen; in __ocfs2_resv_find_window()
600 } else if (clen > best_len) { in __ocfs2_resv_find_window()
601 best_len = clen; in __ocfs2_resv_find_window()
721 int *cstart, int *clen) in ocfs2_resmap_resv_bits() argument
736 if ((resv->r_flags & OCFS2_RESV_FLAG_TMP) || wanted < *clen) in ocfs2_resmap_resv_bits()
737 wanted = *clen; in ocfs2_resmap_resv_bits()
753 *clen = resv->r_len; in ocfs2_resmap_resv_bits()
790 u32 cstart, u32 clen) in ocfs2_resmap_claimed_bits() argument
792 unsigned int cend = cstart + clen - 1; in ocfs2_resmap_claimed_bits()
804 trace_ocfs2_resmap_claimed_bits_begin(cstart, cend, clen, resv->r_start, in ocfs2_resmap_claimed_bits()
815 resv->r_last_len = clen; in ocfs2_resmap_claimed_bits()