Lines Matching refs:goal
367 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument
382 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
386 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
472 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument
490 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window()
499 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
500 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window()
507 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
519 prev_resv = ocfs2_find_resv_lhs(resmap, goal); in __ocfs2_resv_find_window()
545 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window()
547 goal, next_resv->r_start, next_resv->r_len); in __ocfs2_resv_find_window()
552 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
553 next_resv->r_start - goal, in __ocfs2_resv_find_window()
695 unsigned int goal = 0; in ocfs2_resv_find_window() local
705 goal = resv->r_last_start + resv->r_last_len; in ocfs2_resv_find_window()
706 if (goal >= resmap->m_bitmap_len) in ocfs2_resv_find_window()
707 goal = 0; in ocfs2_resv_find_window()
710 __ocfs2_resv_find_window(resmap, resv, goal, wanted); in ocfs2_resv_find_window()
713 if (ocfs2_resv_empty(resv) && goal != 0) in ocfs2_resv_find_window()