Lines Matching refs:goal
352 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument
367 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
371 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
457 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument
475 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window()
484 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
485 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window()
492 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
504 prev_resv = ocfs2_find_resv_lhs(resmap, goal); in __ocfs2_resv_find_window()
530 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window()
532 goal, next_resv->r_start, next_resv->r_len); in __ocfs2_resv_find_window()
537 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
538 next_resv->r_start - goal, in __ocfs2_resv_find_window()
680 unsigned int goal = 0; in ocfs2_resv_find_window() local
690 goal = resv->r_last_start + resv->r_last_len; in ocfs2_resv_find_window()
691 if (goal >= resmap->m_bitmap_len) in ocfs2_resv_find_window()
692 goal = 0; in ocfs2_resv_find_window()
695 __ocfs2_resv_find_window(resmap, resv, goal, wanted); in ocfs2_resv_find_window()
698 if (ocfs2_resv_empty(resv) && goal != 0) in ocfs2_resv_find_window()