Lines Matching refs:free_blocks
167 unsigned free_blocks; in group_adjust_blocks() local
170 free_blocks = le16_to_cpu(desc->bg_free_blocks_count); in group_adjust_blocks()
171 desc->bg_free_blocks_count = cpu_to_le16(free_blocks + count); in group_adjust_blocks()
1158 ext2_fsblk_t free_blocks, root_blocks; in ext2_has_free_blocks() local
1160 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext2_has_free_blocks()
1162 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks()
1217 ext2_grpblk_t free_blocks; /* number of free blocks in a group */ in ext2_new_blocks() local
1278 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1283 if (my_rsv && (free_blocks < windowsz) in ext2_new_blocks()
1284 && (free_blocks > 0) in ext2_new_blocks()
1288 if (free_blocks > 0) { in ext2_new_blocks()
1323 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1328 if (!free_blocks) in ext2_new_blocks()
1335 if (my_rsv && (free_blocks <= (windowsz/2))) in ext2_new_blocks()