Lines Matching refs:grp_goal
270 goal_in_my_reservation(struct ext2_reserve_window *rsv, ext2_grpblk_t grp_goal, in goal_in_my_reservation() argument
281 if ((grp_goal >= 0) && ((grp_goal + group_first_block < rsv->_rsv_start) in goal_in_my_reservation()
282 || (grp_goal + group_first_block > rsv->_rsv_end))) in goal_in_my_reservation()
669 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument
686 if (grp_goal < start || grp_goal >= end) in ext2_try_to_allocate()
687 grp_goal = -1; in ext2_try_to_allocate()
691 if (grp_goal < 0) { in ext2_try_to_allocate()
692 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate()
693 if (grp_goal < 0) in ext2_try_to_allocate()
698 for (i = 0; i < 7 && grp_goal > start && in ext2_try_to_allocate()
699 !ext2_test_bit(grp_goal - 1, in ext2_try_to_allocate()
701 i++, grp_goal--) in ext2_try_to_allocate()
706 for (; num < *count && grp_goal < end; grp_goal++) { in ext2_try_to_allocate()
708 grp_goal, bitmap_bh->b_data)) { in ext2_try_to_allocate()
720 return grp_goal - num; in ext2_try_to_allocate()
871 ext2_grpblk_t grp_goal, struct super_block *sb, in alloc_new_reservation() argument
885 if (grp_goal < 0) in alloc_new_reservation()
888 start_block = grp_goal + group_first_block; in alloc_new_reservation()
1065 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate_with_rsv() argument
1081 grp_goal, count, NULL); in ext2_try_to_allocate_with_rsv()
1110 grp_goal, group, sb)) { in ext2_try_to_allocate_with_rsv()
1113 ret = alloc_new_reservation(my_rsv, grp_goal, sb, in ext2_try_to_allocate_with_rsv()
1119 grp_goal, group, sb)) in ext2_try_to_allocate_with_rsv()
1120 grp_goal = -1; in ext2_try_to_allocate_with_rsv()
1121 } else if (grp_goal >= 0) { in ext2_try_to_allocate_with_rsv()
1123 (grp_goal + group_first_block) + 1; in ext2_try_to_allocate_with_rsv()
1134 group, grp_goal, group_first_block, in ext2_try_to_allocate_with_rsv()
1140 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal, in ext2_try_to_allocate_with_rsv()