Home
last modified time | relevance | path

Searched refs:free_blocks (Results 1 – 18 of 18) sorted by relevance

/linux/fs/ext2/
H A Dballoc.c173 unsigned free_blocks; in group_adjust_blocks() local
176 free_blocks = le16_to_cpu(desc->bg_free_blocks_count); in group_adjust_blocks()
177 desc->bg_free_blocks_count = cpu_to_le16(free_blocks + count); in group_adjust_blocks()
1160 ext2_fsblk_t free_blocks, root_blocks; in ext2_has_free_blocks() local
1162 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext2_has_free_blocks()
1164 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks()
1220 ext2_grpblk_t free_blocks; /* number of free blocks in a group */ in ext2_new_blocks() local
1281 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1286 if (my_rsv && (free_blocks < windowsz) in ext2_new_blocks()
1287 && (free_blocks > 0) in ext2_new_blocks()
[all …]
H A Dialloc.c260 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()
304 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wq.c32 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 …]
H A Dhinic_hw_wq.h59 struct hinic_free_block *free_blocks; member
/linux/fs/gfs2/
H A Dlog.c488 unsigned int free_blocks; in __gfs2_log_try_reserve() local
490 free_blocks = atomic_read(&sdp->sd_log_blks_free); in __gfs2_log_try_reserve()
491 while (free_blocks >= wanted) { in __gfs2_log_try_reserve()
492 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve()
493 free_blocks - blks)) { in __gfs2_log_try_reserve()
524 unsigned int free_blocks; in __gfs2_log_reserve() local
531 (free_blocks = atomic_read(&sdp->sd_log_blks_free), in __gfs2_log_reserve()
532 free_blocks >= wanted)); in __gfs2_log_reserve()
535 &free_blocks, in __gfs2_log_reserve()
536 free_blocks - blks)) in __gfs2_log_reserve()
[all …]
/linux/fs/hfsplus/
H A Dbitmap.c156 sbi->free_blocks -= *max; in hfsplus_block_allocate()
235 sbi->free_blocks += len; in hfsplus_block_free()
H A Dhfsplus_raw.h121 __be32 free_blocks; member
H A Dextents.c450 sbi->total_blocks - sbi->free_blocks + 8) { in hfsplus_file_extend()
454 sbi->total_blocks, sbi->free_blocks); in hfsplus_file_extend()
H A Dhfsplus_fs.h172 u32 free_blocks; member
H A Dxattr.c188 if (sbi->free_blocks <= (hip->clump_blocks << 1)) { in hfsplus_create_attributes_file()
/linux/fs/nilfs2/
H A Dsysfs.c881 sector_t free_blocks = 0; in nilfs_dev_free_blocks_show() local
883 nilfs_count_free_blocks(nilfs, &free_blocks); in nilfs_dev_free_blocks_show()
885 (unsigned long long)free_blocks); in nilfs_dev_free_blocks_show()
941 NILFS_DEV_RO_ATTR(free_blocks);
950 NILFS_DEV_ATTR_LIST(free_blocks),
/linux/fs/ext4/
H A Dresize.c1423 ext4_fsblk_t free_blocks = 0; in ext4_update_super() local
1443 free_blocks += EXT4_C2B(sbi, group_data[i].free_clusters_count); in ext4_update_super()
1453 ext4_free_blocks_count_set(es, ext4_free_blocks_count(es) + free_blocks); in ext4_update_super()
1492 EXT4_NUM_B2C(sbi, free_blocks)); in ext4_update_super()
1504 atomic64_add(EXT4_NUM_B2C(sbi, free_blocks), in ext4_update_super()
1519 EXT4_NUM_B2C(sbi, blocks_count - free_blocks)); in ext4_update_super()
1529 blocks_count, free_blocks, reserved_blocks); in ext4_update_super()
/linux/drivers/md/
H A Ddm-thin.c1503 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark() argument
1505 if (free_blocks <= pool->low_water_blocks && !pool->low_water_triggered) { in check_low_water_mark()
1518 dm_block_t free_blocks; in alloc_data_block() local
1524 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1530 check_low_water_mark(pool, free_blocks); in alloc_data_block()
1532 if (!free_blocks) { in alloc_data_block()
1541 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1547 if (!free_blocks) { in alloc_data_block()
1562 r = dm_pool_get_free_metadata_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1568 if (!free_blocks) { in alloc_data_block()
/linux/drivers/md/dm-vdo/
H A Dslab-depot.h242 u32 free_blocks; member
/linux/include/uapi/linux/
H A Dcdrom.h912 __be32 free_blocks; member
/linux/Documentation/ABI/testing/
H A Dsysfs-fs-nilfs236 What: /sys/fs/nilfs2/<device>/free_blocks
/linux/drivers/block/
H A Dpktcdvd.c1621 if (ti.free_blocks) in pkt_get_last_written()
1622 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in pkt_get_last_written()
/linux/drivers/cdrom/
H A Dcdrom.c2852 if (ti.free_blocks) in cdrom_get_last_written()
2853 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()