Lines Matching refs:grp_goal
266 goal_in_my_reservation(struct ext2_reserve_window *rsv, ext2_grpblk_t grp_goal, in goal_in_my_reservation() argument
277 if ((grp_goal >= 0) && ((grp_goal + group_first_block < rsv->_rsv_start) in goal_in_my_reservation()
278 || (grp_goal + group_first_block > rsv->_rsv_end))) in goal_in_my_reservation()
667 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument
687 if ((start <= grp_goal) && (grp_goal < end)) in ext2_try_to_allocate()
688 start = grp_goal; in ext2_try_to_allocate()
690 grp_goal = -1; in ext2_try_to_allocate()
692 if (grp_goal > 0) in ext2_try_to_allocate()
693 start = grp_goal; in ext2_try_to_allocate()
702 if (grp_goal < 0) { in ext2_try_to_allocate()
703 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate()
704 if (grp_goal < 0) in ext2_try_to_allocate()
709 for (i = 0; i < 7 && grp_goal > start && in ext2_try_to_allocate()
710 !ext2_test_bit(grp_goal - 1, in ext2_try_to_allocate()
712 i++, grp_goal--) in ext2_try_to_allocate()
716 start = grp_goal; in ext2_try_to_allocate()
718 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate()
725 grp_goal++; in ext2_try_to_allocate()
731 grp_goal++; in ext2_try_to_allocate()
732 while (num < *count && grp_goal < end in ext2_try_to_allocate()
734 grp_goal, bitmap_bh->b_data)) { in ext2_try_to_allocate()
736 grp_goal++; in ext2_try_to_allocate()
739 return grp_goal - num; in ext2_try_to_allocate()
901 ext2_grpblk_t grp_goal, struct super_block *sb, in alloc_new_reservation() argument
915 if (grp_goal < 0) in alloc_new_reservation()
918 start_block = grp_goal + group_first_block; in alloc_new_reservation()
1095 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate_with_rsv() argument
1111 grp_goal, count, NULL); in ext2_try_to_allocate_with_rsv()
1140 grp_goal, group, sb)) { in ext2_try_to_allocate_with_rsv()
1143 ret = alloc_new_reservation(my_rsv, grp_goal, sb, in ext2_try_to_allocate_with_rsv()
1149 grp_goal, group, sb)) in ext2_try_to_allocate_with_rsv()
1150 grp_goal = -1; in ext2_try_to_allocate_with_rsv()
1151 } else if (grp_goal >= 0) { in ext2_try_to_allocate_with_rsv()
1153 (grp_goal + group_first_block) + 1; in ext2_try_to_allocate_with_rsv()
1165 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal, in ext2_try_to_allocate_with_rsv()