Lines Matching refs:wanted
407 unsigned int wanted, in ocfs2_resmap_find_free_bits() argument
418 wanted, resmap->m_bitmap_len); in ocfs2_resmap_find_free_bits()
444 if (found >= wanted) in ocfs2_resmap_find_free_bits()
451 if (best_len >= wanted) in ocfs2_resmap_find_free_bits()
452 best_len = wanted; in ocfs2_resmap_find_free_bits()
464 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument
482 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window()
491 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
544 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
550 if (best_len == wanted) in __ocfs2_resv_find_window()
594 clen = ocfs2_resmap_find_free_bits(resmap, wanted, gap_start, in __ocfs2_resv_find_window()
596 if (clen == wanted) { in __ocfs2_resv_find_window()
624 unsigned int wanted) in ocfs2_cannibalize_resv() argument
633 min_bits = wanted; /* We at know the temp window will use all in ocfs2_cannibalize_resv()
685 unsigned int wanted) in ocfs2_resv_find_window() argument
702 __ocfs2_resv_find_window(resmap, resv, goal, wanted); in ocfs2_resv_find_window()
706 __ocfs2_resv_find_window(resmap, resv, 0, wanted); in ocfs2_resv_find_window()
713 ocfs2_cannibalize_resv(resmap, resv, wanted); in ocfs2_resv_find_window()
734 unsigned int wanted = ocfs2_resv_window_bits(resmap, resv); in ocfs2_resmap_resv_bits() local
736 if ((resv->r_flags & OCFS2_RESV_FLAG_TMP) || wanted < *clen) in ocfs2_resmap_resv_bits()
737 wanted = *clen; in ocfs2_resmap_resv_bits()
746 ocfs2_resv_find_window(resmap, resv, wanted); in ocfs2_resmap_resv_bits()