/linux-6.1.9/fs/ext2/ |
D | balloc.c | 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() [all …]
|
D | ialloc.c | 260 int free_blocks; in find_group_orlov() local 270 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in find_group_orlov() 271 avefreeb = free_blocks / ngroups; in find_group_orlov() 307 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
|
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 32 sizeof((wqs)->free_blocks[0])) 249 *page_idx = wqs->free_blocks[pos].page_idx; in wqs_next_block() 250 *block_idx = wqs->free_blocks[pos].block_idx; in wqs_next_block() 252 wqs->free_blocks[pos].page_idx = -1; in wqs_next_block() 253 wqs->free_blocks[pos].block_idx = -1; in wqs_next_block() 269 wqs->free_blocks[pos].page_idx = page_idx; in wqs_return_block() 270 wqs->free_blocks[pos].block_idx = block_idx; in wqs_return_block() 283 wqs->free_blocks[pos].page_idx = page_idx; in init_wqs_blocks_arr() 284 wqs->free_blocks[pos].block_idx = blk_idx; in init_wqs_blocks_arr() 333 wqs->free_blocks = devm_kzalloc(&pdev->dev, WQS_FREE_BLOCKS_SIZE(wqs), in hinic_wqs_alloc() [all …]
|
D | hinic_hw_wq.h | 59 struct hinic_free_block *free_blocks; member
|
/linux-6.1.9/fs/reiserfs/ |
D | resize.c | 34 unsigned long int block_count, free_blocks; in reiserfs_resize() local 219 free_blocks = SB_FREE_BLOCKS(s); in reiserfs_resize() 221 free_blocks + (block_count_new - block_count - in reiserfs_resize()
|
/linux-6.1.9/fs/gfs2/ |
D | log.c | 491 unsigned int free_blocks; in __gfs2_log_try_reserve() local 493 free_blocks = atomic_read(&sdp->sd_log_blks_free); in __gfs2_log_try_reserve() 494 while (free_blocks >= wanted) { in __gfs2_log_try_reserve() 495 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve() 496 free_blocks - blks)) { in __gfs2_log_try_reserve() 527 unsigned int free_blocks; in __gfs2_log_reserve() local 534 (free_blocks = atomic_read(&sdp->sd_log_blks_free), in __gfs2_log_reserve() 535 free_blocks >= wanted)); in __gfs2_log_reserve() 538 &free_blocks, in __gfs2_log_reserve() 539 free_blocks - blks)) in __gfs2_log_reserve() [all …]
|
D | rgrp.c | 1569 u32 free_blocks, blocks_available; in rg_mblk_search() local 1574 free_blocks = rgd_free(rgd, rs); in rg_mblk_search() 1576 free_blocks = 0; in rg_mblk_search() 1586 extlen = clamp(extlen, (u32)RGRP_RSRV_MINBLKS, free_blocks); in rg_mblk_search() 1588 if (free_blocks < extlen || blocks_available < extlen) in rg_mblk_search() 2055 u32 free_blocks, blocks_available, skip = 0; in gfs2_inplace_reserve() local 2138 free_blocks = rgd_free(rgd, rs); in gfs2_inplace_reserve() 2140 if (free_blocks < target || blocks_available < target) { in gfs2_inplace_reserve()
|
/linux-6.1.9/fs/hfsplus/ |
D | super.c | 212 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks); in hfsplus_sync_fs() 319 buf->f_bfree = sbi->free_blocks << sbi->fs_shift; in hfsplus_statfs() 428 sbi->free_blocks = be32_to_cpu(vhdr->free_blocks); in hfsplus_fill_super()
|
D | bitmap.c | 156 sbi->free_blocks -= *max; in hfsplus_block_allocate() 235 sbi->free_blocks += len; in hfsplus_block_free()
|
D | hfsplus_raw.h | 121 __be32 free_blocks; member
|
D | extents.c | 449 sbi->total_blocks - sbi->free_blocks + 8) { in hfsplus_file_extend() 453 sbi->total_blocks, sbi->free_blocks); in hfsplus_file_extend()
|
D | hfsplus_fs.h | 170 u32 free_blocks; member
|
D | xattr.c | 188 if (sbi->free_blocks <= (hip->clump_blocks << 1)) { in hfsplus_create_attributes_file()
|
/linux-6.1.9/fs/nilfs2/ |
D | sysfs.c | 870 sector_t free_blocks = 0; in nilfs_dev_free_blocks_show() local 872 nilfs_count_free_blocks(nilfs, &free_blocks); in nilfs_dev_free_blocks_show() 874 (unsigned long long)free_blocks); in nilfs_dev_free_blocks_show() 918 NILFS_DEV_RO_ATTR(free_blocks); 927 NILFS_DEV_ATTR_LIST(free_blocks),
|
/linux-6.1.9/fs/ext4/ |
D | resize.c | 1421 ext4_fsblk_t free_blocks = 0; in ext4_update_super() local 1441 free_blocks += EXT4_C2B(sbi, group_data[i].free_clusters_count); in ext4_update_super() 1451 ext4_free_blocks_count_set(es, ext4_free_blocks_count(es) + free_blocks); in ext4_update_super() 1490 EXT4_NUM_B2C(sbi, free_blocks)); in ext4_update_super() 1502 atomic64_add(EXT4_NUM_B2C(sbi, free_blocks), in ext4_update_super() 1517 EXT4_NUM_B2C(sbi, blocks_count - free_blocks)); in ext4_update_super() 1527 blocks_count, free_blocks, reserved_blocks); in ext4_update_super()
|
/linux-6.1.9/drivers/md/ |
D | dm-thin.c | 1500 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark() argument 1502 if (free_blocks <= pool->low_water_blocks && !pool->low_water_triggered) { in check_low_water_mark() 1515 dm_block_t free_blocks; in alloc_data_block() local 1521 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block() 1527 check_low_water_mark(pool, free_blocks); in alloc_data_block() 1529 if (!free_blocks) { in alloc_data_block() 1538 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block() 1544 if (!free_blocks) { in alloc_data_block() 1559 r = dm_pool_get_free_metadata_block_count(pool->pmd, &free_blocks); in alloc_data_block() 1565 if (!free_blocks) { in alloc_data_block()
|
/linux-6.1.9/fs/f2fs/ |
D | recovery.c | 371 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes() local 435 if (++loop_cnt >= free_blocks || in find_fsync_dnodes()
|
/linux-6.1.9/include/uapi/linux/ |
D | cdrom.h | 912 __be32 free_blocks; member
|
/linux-6.1.9/Documentation/ABI/testing/ |
D | sysfs-fs-nilfs2 | 36 What: /sys/fs/nilfs2/<device>/free_blocks
|
/linux-6.1.9/fs/xfs/ |
D | xfs_log.c | 1695 int free_blocks; in xlog_grant_push_threshold() local 1704 free_blocks = BTOBBT(free_bytes); in xlog_grant_push_threshold() 1714 if (free_blocks >= free_threshold) in xlog_grant_push_threshold()
|
/linux-6.1.9/drivers/block/ |
D | pktcdvd.c | 1599 if (ti.free_blocks) in pkt_get_last_written() 1600 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in pkt_get_last_written()
|
/linux-6.1.9/drivers/cdrom/ |
D | cdrom.c | 2866 if (ti.free_blocks) in cdrom_get_last_written() 2867 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()
|