| /linux/fs/ext2/ |
| H A D | balloc.c | 173 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 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() 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 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 …]
|
| H A D | hinic_hw_wq.h | 59 struct hinic_free_block *free_blocks; member
|
| /linux/drivers/md/dm-vdo/ |
| H A D | slab-depot.c | 216 block_count_t free_blocks) in compute_fullness_hint() argument 220 VDO_ASSERT_LOG_ONLY((free_blocks < (1 << 23)), "free blocks must be less than 2^23"); in compute_fullness_hint() 222 if (free_blocks == 0) in compute_fullness_hint() 225 hint = free_blocks >> depot->hint_shift; in compute_fullness_hint() 364 block_count_t free_blocks) in update_slab_summary_entry() argument 390 .fullness_hint = compute_fullness_hint(allocator->depot, free_blocks), in update_slab_summary_entry() 640 free_block_count = slab->free_blocks; in update_tail_block_location() 1116 true, true, slab->free_blocks); in finish_reference_block_write() 1337 block_count_t free_blocks = slab->free_blocks; in calculate_slab_priority() local 1359 if (free_blocks == 0) in calculate_slab_priority() [all …]
|
| H A D | encodings.c | 829 block_count_t free_blocks = layout->last_free - layout->first_free; in make_partition() local 832 if (free_blocks == 0) in make_partition() 834 size = free_blocks; in make_partition() 835 } else if (size > free_blocks) { in make_partition()
|
| H A D | slab-depot.h | 249 u32 free_blocks; member
|
| /linux/fs/hfsplus/ |
| H A D | bitmap.c | 156 sbi->free_blocks -= *max; in hfsplus_block_allocate() 235 sbi->free_blocks += len; in hfsplus_block_free()
|
| H A D | extents.c | 445 sbi->total_blocks - sbi->free_blocks + 8) { in hfsplus_file_extend() 449 sbi->total_blocks, sbi->free_blocks); in hfsplus_file_extend()
|
| /linux/fs/nilfs2/ |
| H A D | sysfs.c | 881 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/drivers/md/dm-vdo/indexer/ |
| H A D | index-layout.c | 575 u64 free_blocks; in reset_index_save_layout() local 597 free_blocks = isl->index_save.block_count - page_map_blocks - 1; in reset_index_save_layout() 600 .block_count = free_blocks, in reset_index_save_layout() 961 u64 free_blocks; in instantiate_index_save_layout() local 986 free_blocks = (isl->index_save.block_count - 1 - in instantiate_index_save_layout() 989 volume_index_blocks = free_blocks / isl->zone_count; in instantiate_index_save_layout() 999 free_blocks -= volume_index_blocks; in instantiate_index_save_layout() 1013 .block_count = free_blocks, in instantiate_index_save_layout()
|
| /linux/drivers/md/ |
| H A D | dm-thin.c | 1501 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark() argument 1503 if (free_blocks <= pool->low_water_blocks && !pool->low_water_triggered) { in check_low_water_mark() 1516 dm_block_t free_blocks; in alloc_data_block() local 1522 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block() 1528 check_low_water_mark(pool, free_blocks); in alloc_data_block() 1530 if (!free_blocks) { in alloc_data_block() 1539 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block() 1545 if (!free_blocks) { in alloc_data_block() 1560 r = dm_pool_get_free_metadata_block_count(pool->pmd, &free_blocks); in alloc_data_block() 1566 if (!free_blocks) { in alloc_data_block()
|
| /linux/include/uapi/linux/ |
| H A D | cdrom.h | 912 __be32 free_blocks; member
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-fs-nilfs2 | 36 What: /sys/fs/nilfs2/<device>/free_blocks
|
| /linux/drivers/cdrom/ |
| H A D | cdrom.c | 2848 if (ti.free_blocks) in cdrom_get_last_written() 2849 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()
|