Lines Matching refs:free_blocks
168 unsigned free_blocks; in group_adjust_blocks() local
171 free_blocks = le16_to_cpu(desc->bg_free_blocks_count); in group_adjust_blocks()
172 desc->bg_free_blocks_count = cpu_to_le16(free_blocks + count); in group_adjust_blocks()
1159 ext2_fsblk_t free_blocks, root_blocks; in ext2_has_free_blocks() local
1161 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext2_has_free_blocks()
1163 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks()
1218 ext2_grpblk_t free_blocks; /* number of free blocks in a group */ in ext2_new_blocks() local
1279 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1284 if (my_rsv && (free_blocks < windowsz) in ext2_new_blocks()
1285 && (free_blocks > 0) in ext2_new_blocks()
1289 if (free_blocks > 0) { in ext2_new_blocks()
1324 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1329 if (!free_blocks) in ext2_new_blocks()
1336 if (my_rsv && (free_blocks <= (windowsz/2))) in ext2_new_blocks()