Lines Matching refs:grp_goal

264 goal_in_my_reservation(struct ext2_reserve_window *rsv, ext2_grpblk_t grp_goal,  in goal_in_my_reservation()  argument
275 if ((grp_goal >= 0) && ((grp_goal + group_first_block < rsv->_rsv_start) in goal_in_my_reservation()
276 || (grp_goal + group_first_block > rsv->_rsv_end))) in goal_in_my_reservation()
665 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument
685 if ((start <= grp_goal) && (grp_goal < end)) in ext2_try_to_allocate()
686 start = grp_goal; in ext2_try_to_allocate()
688 grp_goal = -1; in ext2_try_to_allocate()
690 if (grp_goal > 0) in ext2_try_to_allocate()
691 start = grp_goal; in ext2_try_to_allocate()
700 if (grp_goal < 0) { in ext2_try_to_allocate()
701 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate()
702 if (grp_goal < 0) in ext2_try_to_allocate()
707 for (i = 0; i < 7 && grp_goal > start && in ext2_try_to_allocate()
708 !ext2_test_bit(grp_goal - 1, in ext2_try_to_allocate()
710 i++, grp_goal--) in ext2_try_to_allocate()
714 start = grp_goal; in ext2_try_to_allocate()
716 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate()
723 grp_goal++; in ext2_try_to_allocate()
729 grp_goal++; in ext2_try_to_allocate()
730 while (num < *count && grp_goal < end in ext2_try_to_allocate()
732 grp_goal, bitmap_bh->b_data)) { in ext2_try_to_allocate()
734 grp_goal++; in ext2_try_to_allocate()
737 return grp_goal - num; in ext2_try_to_allocate()
899 ext2_grpblk_t grp_goal, struct super_block *sb, in alloc_new_reservation() argument
913 if (grp_goal < 0) in alloc_new_reservation()
916 start_block = grp_goal + group_first_block; in alloc_new_reservation()
1093 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate_with_rsv() argument
1109 grp_goal, count, NULL); in ext2_try_to_allocate_with_rsv()
1138 grp_goal, group, sb)) { in ext2_try_to_allocate_with_rsv()
1141 ret = alloc_new_reservation(my_rsv, grp_goal, sb, in ext2_try_to_allocate_with_rsv()
1147 grp_goal, group, sb)) in ext2_try_to_allocate_with_rsv()
1148 grp_goal = -1; in ext2_try_to_allocate_with_rsv()
1149 } else if (grp_goal >= 0) { in ext2_try_to_allocate_with_rsv()
1151 (grp_goal + group_first_block) + 1; in ext2_try_to_allocate_with_rsv()
1163 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal, in ext2_try_to_allocate_with_rsv()