Lines Matching refs:goal
354 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument
369 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
373 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
459 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument
477 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window()
486 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
487 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window()
494 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
506 prev_resv = ocfs2_find_resv_lhs(resmap, goal); in __ocfs2_resv_find_window()
532 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window()
534 goal, next_resv->r_start, next_resv->r_len); in __ocfs2_resv_find_window()
539 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
540 next_resv->r_start - goal, in __ocfs2_resv_find_window()
682 unsigned int goal = 0; in ocfs2_resv_find_window() local
692 goal = resv->r_last_start + resv->r_last_len; in ocfs2_resv_find_window()
693 if (goal >= resmap->m_bitmap_len) in ocfs2_resv_find_window()
694 goal = 0; in ocfs2_resv_find_window()
697 __ocfs2_resv_find_window(resmap, resv, goal, wanted); in ocfs2_resv_find_window()
700 if (ocfs2_resv_empty(resv) && goal != 0) in ocfs2_resv_find_window()