/fs/ext4/ |
D | balloc.c | 94 unsigned free_blocks, group_blocks; in ext4_init_block_bitmap() local 142 free_blocks = group_blocks - bit_max; in ext4_init_block_bitmap() 180 return free_blocks - ext4_group_used_meta_blocks(sb, block_group); in ext4_init_block_bitmap() 477 sbi->s_flex_groups[flex_group].free_blocks += blocks_freed; in ext4_add_groupblocks() 553 s64 free_blocks, dirty_blocks, root_blocks; in ext4_has_free_blocks() local 557 free_blocks = percpu_counter_read_positive(fbc); in ext4_has_free_blocks() 561 if (free_blocks - (nblocks + root_blocks + dirty_blocks) < in ext4_has_free_blocks() 563 free_blocks = percpu_counter_sum_positive(fbc); in ext4_has_free_blocks() 574 if (free_blocks >= ((root_blocks + nblocks) + dirty_blocks)) in ext4_has_free_blocks() 581 if (free_blocks >= (nblocks + dirty_blocks)) in ext4_has_free_blocks()
|
D | ialloc.c | 363 flexbg_free_blocks = flex_group[best_flex].free_blocks; in find_group_flex() 378 flexbg_free_blocks = flex_group[i].free_blocks; in find_group_flex() 388 (flex_group[i].free_blocks > in find_group_flex() 389 flex_group[best_flex].free_blocks && in find_group_flex() 395 !flex_group[best_flex].free_blocks) in find_group_flex()
|
D | inode.c | 2612 s64 free_blocks, dirty_blocks; in ext4_nonda_switch() local 2623 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext4_nonda_switch() 2625 if (2 * free_blocks < 3 * dirty_blocks || in ext4_nonda_switch() 2626 free_blocks < (dirty_blocks + EXT4_FREEBLOCKS_WATERMARK)) { in ext4_nonda_switch()
|
D | resize.c | 941 sbi->s_flex_groups[flex_group].free_blocks += in ext4_group_add()
|
D | ext4.h | 183 __u32 free_blocks; member
|
D | mballoc.c | 3097 sbi->s_flex_groups[flex_group].free_blocks -= ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used() 4932 sbi->s_flex_groups[flex_group].free_blocks += count; in ext4_mb_free_blocks()
|
D | super.c | 1615 sbi->s_flex_groups[flex_group].free_blocks += in ext4_fill_flex_info()
|
/fs/ext2/ |
D | balloc.c | 176 unsigned free_blocks; in group_adjust_blocks() local 179 free_blocks = le16_to_cpu(desc->bg_free_blocks_count); in group_adjust_blocks() 180 desc->bg_free_blocks_count = cpu_to_le16(free_blocks + count); in group_adjust_blocks() 1191 ext2_fsblk_t free_blocks, root_blocks; in ext2_has_free_blocks() local 1193 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext2_has_free_blocks() 1195 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks() 1229 ext2_grpblk_t free_blocks; /* number of free blocks in a group */ in ext2_new_blocks() local 1292 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks() 1297 if (my_rsv && (free_blocks < windowsz) in ext2_new_blocks() 1298 && (free_blocks > 0) in ext2_new_blocks() [all …]
|
D | ialloc.c | 275 int free_blocks; in find_group_orlov() local 285 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in find_group_orlov() 286 avefreeb = free_blocks / ngroups; in find_group_orlov() 323 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
|
/fs/reiserfs/ |
D | resize.c | 35 unsigned long int block_count, free_blocks; in reiserfs_resize() local 199 free_blocks = SB_FREE_BLOCKS(s); in reiserfs_resize() 201 free_blocks + (block_count_new - block_count - in reiserfs_resize()
|
/fs/ext3/ |
D | balloc.c | 1420 ext3_fsblk_t free_blocks, root_blocks; in ext3_has_free_blocks() local 1422 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext3_has_free_blocks() 1424 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext3_has_free_blocks() 1481 ext3_grpblk_t free_blocks; /* number of free blocks in a group */ in ext3_new_blocks() local 1544 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext3_new_blocks() 1549 if (my_rsv && (free_blocks < windowsz) in ext3_new_blocks() 1550 && (free_blocks > 0) in ext3_new_blocks() 1554 if (free_blocks > 0) { in ext3_new_blocks() 1583 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext3_new_blocks() 1589 if (my_rsv && (free_blocks <= (windowsz/2))) in ext3_new_blocks()
|
/fs/hugetlbfs/ |
D | inode.c | 635 buf->f_bavail = buf->f_bfree = sbinfo->free_blocks; in hugetlbfs_statfs() 876 sbinfo->free_blocks = config.nr_blocks; in hugetlbfs_fill_super() 907 if (sbinfo->free_blocks > -1) { in hugetlb_get_quota() 909 if (sbinfo->free_blocks - delta >= 0) in hugetlb_get_quota() 910 sbinfo->free_blocks -= delta; in hugetlb_get_quota() 923 if (sbinfo->free_blocks > -1) { in hugetlb_put_quota() 925 sbinfo->free_blocks += delta; in hugetlb_put_quota()
|
/fs/hfsplus/ |
D | super.c | 165 vhdr->free_blocks = cpu_to_be32(HFSPLUS_SB(sb).free_blocks); in hfsplus_write_super() 230 buf->f_bfree = HFSPLUS_SB(sb).free_blocks << HFSPLUS_SB(sb).fs_shift; in hfsplus_statfs() 334 HFSPLUS_SB(sb).free_blocks = be32_to_cpu(vhdr->free_blocks); in hfsplus_fill_super()
|
D | bitmap.c | 153 HFSPLUS_SB(sb).free_blocks -= *max; in hfsplus_block_allocate() 227 HFSPLUS_SB(sb).free_blocks += len; in hfsplus_block_free()
|
D | hfsplus_raw.h | 109 __be32 free_blocks; member
|
D | extents.c | 354 …LUS_SB(sb).alloc_file->i_size * 8 < HFSPLUS_SB(sb).total_blocks - HFSPLUS_SB(sb).free_blocks + 8) { in hfsplus_file_extend() 357 HFSPLUS_SB(sb).total_blocks, HFSPLUS_SB(sb).free_blocks); in hfsplus_file_extend()
|
D | hfsplus_fs.h | 128 u32 free_blocks; member
|
/fs/ncpfs/ |
D | inode.c | 817 buf->f_bfree = vi.free_blocks; in ncp_statfs() 818 buf->f_bavail = vi.free_blocks; in ncp_statfs()
|
D | ncplib_kernel.c | 216 target->free_blocks = ncp_reply_dword_lh(server, 4); in ncp_get_volume_info_with_number() 250 target->free_blocks = ncp_reply_dword_lh(server, 4); in ncp_get_directory_info()
|
/fs/xfs/ |
D | xfs_log.c | 1395 int free_blocks; /* free blocks left to write to */ in xlog_grant_push_ail() local 1408 free_blocks = BTOBBT(free_bytes); in xlog_grant_push_ail() 1418 if (free_blocks < free_threshold) { in xlog_grant_push_ail()
|