Lines Matching refs:needed
1209 int needed, struct ext4_free_extent *ex) in mb_find_extent() argument
1245 while (needed > ex->fe_len && in mb_find_extent()
3931 ext4_group_t group, int needed) in ext4_mb_discard_group_preallocations() argument
3963 if (needed == 0) in ext4_mb_discard_group_preallocations()
3964 needed = EXT4_BLOCKS_PER_GROUP(sb) + 1; in ext4_mb_discard_group_preallocations()
3996 if (free < needed && busy) { in ext4_mb_discard_group_preallocations()
4517 static int ext4_mb_discard_preallocations(struct super_block *sb, int needed) in ext4_mb_discard_preallocations() argument
4524 sb->s_id, needed); in ext4_mb_discard_preallocations()
4525 for (i = 0; i < EXT4_SB(sb)->s_groups_count && needed > 0; i++) { in ext4_mb_discard_preallocations()
4526 ret = ext4_mb_discard_group_preallocations(sb, i, needed); in ext4_mb_discard_preallocations()
4528 needed -= ret; in ext4_mb_discard_preallocations()