Lines Matching refs:grp_goal

272 goal_in_my_reservation(struct ext3_reserve_window *rsv, ext3_grpblk_t grp_goal,  in goal_in_my_reservation()  argument
283 if ((grp_goal >= 0) && ((grp_goal + group_first_block < rsv->_rsv_start) in goal_in_my_reservation()
284 || (grp_goal + group_first_block > rsv->_rsv_end))) in goal_in_my_reservation()
877 struct buffer_head *bitmap_bh, ext3_grpblk_t grp_goal, in ext3_try_to_allocate() argument
896 if ((start <= grp_goal) && (grp_goal < end)) in ext3_try_to_allocate()
897 start = grp_goal; in ext3_try_to_allocate()
899 grp_goal = -1; in ext3_try_to_allocate()
901 if (grp_goal > 0) in ext3_try_to_allocate()
902 start = grp_goal; in ext3_try_to_allocate()
911 if (grp_goal < 0 || !ext3_test_allocatable(grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
912 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext3_try_to_allocate()
913 if (grp_goal < 0) in ext3_try_to_allocate()
918 for (i = 0; i < 7 && grp_goal > start && in ext3_try_to_allocate()
919 ext3_test_allocatable(grp_goal - 1, in ext3_try_to_allocate()
921 i++, grp_goal--) in ext3_try_to_allocate()
925 start = grp_goal; in ext3_try_to_allocate()
928 grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
934 grp_goal++; in ext3_try_to_allocate()
940 grp_goal++; in ext3_try_to_allocate()
941 while (num < *count && grp_goal < end in ext3_try_to_allocate()
942 && ext3_test_allocatable(grp_goal, bitmap_bh) in ext3_try_to_allocate()
944 grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
946 grp_goal++; in ext3_try_to_allocate()
949 return grp_goal - num; in ext3_try_to_allocate()
1113 ext3_grpblk_t grp_goal, struct super_block *sb, in alloc_new_reservation() argument
1127 if (grp_goal < 0) in alloc_new_reservation()
1130 start_block = grp_goal + group_first_block; in alloc_new_reservation()
1317 ext3_grpblk_t grp_goal, in ext3_try_to_allocate_with_rsv() argument
1348 grp_goal, count, NULL); in ext3_try_to_allocate_with_rsv()
1378 grp_goal, group, sb)) { in ext3_try_to_allocate_with_rsv()
1381 ret = alloc_new_reservation(my_rsv, grp_goal, sb, in ext3_try_to_allocate_with_rsv()
1387 grp_goal, group, sb)) in ext3_try_to_allocate_with_rsv()
1388 grp_goal = -1; in ext3_try_to_allocate_with_rsv()
1389 } else if (grp_goal >= 0) { in ext3_try_to_allocate_with_rsv()
1391 (grp_goal + group_first_block) + 1; in ext3_try_to_allocate_with_rsv()
1404 grp_goal, &num, &my_rsv->rsv_window); in ext3_try_to_allocate_with_rsv()