Home
last modified time | relevance | path

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

/linux/fs/ext2/
A Dballoc.c167 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
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()
[all …]
A Dialloc.c265 int free_blocks; in find_group_orlov() local
275 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in find_group_orlov()
276 avefreeb = free_blocks / ngroups; in find_group_orlov()
313 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_hw_wq.c32 sizeof((wqs)->free_blocks[0]))
251 *page_idx = wqs->free_blocks[pos].page_idx; in wqs_next_block()
252 *block_idx = wqs->free_blocks[pos].block_idx; in wqs_next_block()
254 wqs->free_blocks[pos].page_idx = -1; in wqs_next_block()
255 wqs->free_blocks[pos].block_idx = -1; in wqs_next_block()
271 wqs->free_blocks[pos].page_idx = page_idx; in wqs_return_block()
272 wqs->free_blocks[pos].block_idx = block_idx; in wqs_return_block()
285 wqs->free_blocks[pos].page_idx = page_idx; in init_wqs_blocks_arr()
286 wqs->free_blocks[pos].block_idx = blk_idx; in init_wqs_blocks_arr()
337 if (!wqs->free_blocks) { in hinic_wqs_alloc()
[all …]
A Dhinic_hw_wq.h59 struct hinic_free_block *free_blocks; member
/linux/fs/reiserfs/
A Dresize.c34 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/fs/gfs2/
A Dlog.c492 unsigned int free_blocks; in __gfs2_log_try_reserve() local
494 free_blocks = atomic_read(&sdp->sd_log_blks_free); in __gfs2_log_try_reserve()
495 while (free_blocks >= wanted) { in __gfs2_log_try_reserve()
496 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve()
497 free_blocks - blks)) { in __gfs2_log_try_reserve()
528 unsigned int free_blocks; in __gfs2_log_reserve() local
535 (free_blocks = atomic_read(&sdp->sd_log_blks_free), in __gfs2_log_reserve()
536 free_blocks >= wanted)); in __gfs2_log_reserve()
539 &free_blocks, in __gfs2_log_reserve()
540 free_blocks - blks)) in __gfs2_log_reserve()
[all …]
A Drgrp.c1568 u32 free_blocks, blocks_available; in rg_mblk_search() local
1573 free_blocks = rgd_free(rgd, rs); in rg_mblk_search()
1575 free_blocks = 0; in rg_mblk_search()
1585 extlen = clamp(extlen, (u32)RGRP_RSRV_MINBLKS, free_blocks); in rg_mblk_search()
1587 if (free_blocks < extlen || blocks_available < extlen) in rg_mblk_search()
2054 u32 free_blocks, blocks_available, skip = 0; in gfs2_inplace_reserve() local
2137 free_blocks = rgd_free(rgd, rs); in gfs2_inplace_reserve()
2139 if (free_blocks < target || blocks_available < target) { in gfs2_inplace_reserve()
/linux/fs/hfsplus/
A Dsuper.c212 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()
A Dbitmap.c156 sbi->free_blocks -= *max; in hfsplus_block_allocate()
235 sbi->free_blocks += len; in hfsplus_block_free()
A Dhfsplus_raw.h121 __be32 free_blocks; member
A Dextents.c449 sbi->total_blocks - sbi->free_blocks + 8) { in hfsplus_file_extend()
453 sbi->total_blocks, sbi->free_blocks); in hfsplus_file_extend()
A Dhfsplus_fs.h170 u32 free_blocks; member
A Dxattr.c188 if (sbi->free_blocks <= (hip->clump_blocks << 1)) { in hfsplus_create_attributes_file()
/linux/fs/nilfs2/
A Dsysfs.c864 sector_t free_blocks = 0; in nilfs_dev_free_blocks_show() local
866 nilfs_count_free_blocks(nilfs, &free_blocks); in nilfs_dev_free_blocks_show()
868 (unsigned long long)free_blocks); in nilfs_dev_free_blocks_show()
912 NILFS_DEV_RO_ATTR(free_blocks);
921 NILFS_DEV_ATTR_LIST(free_blocks),
/linux/fs/ext4/
A Dresize.c1372 ext4_fsblk_t free_blocks = 0; in ext4_update_super() local
1392 free_blocks += EXT4_C2B(sbi, group_data[i].free_clusters_count); in ext4_update_super()
1402 ext4_free_blocks_count_set(es, ext4_free_blocks_count(es) + free_blocks); in ext4_update_super()
1443 EXT4_NUM_B2C(sbi, free_blocks)); in ext4_update_super()
1455 atomic64_add(EXT4_NUM_B2C(sbi, free_blocks), in ext4_update_super()
1469 blocks_count, free_blocks, reserved_blocks); in ext4_update_super()
/linux/drivers/md/
A Ddm-thin.c1510 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark() argument
1512 if (free_blocks <= pool->low_water_blocks && !pool->low_water_triggered) { in check_low_water_mark()
1525 dm_block_t free_blocks; in alloc_data_block() local
1531 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1537 check_low_water_mark(pool, free_blocks); in alloc_data_block()
1539 if (!free_blocks) { in alloc_data_block()
1548 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1554 if (!free_blocks) { in alloc_data_block()
1569 r = dm_pool_get_free_metadata_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1575 if (!free_blocks) { in alloc_data_block()
/linux/fs/f2fs/
A Drecovery.c352 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes() local
416 if (++loop_cnt >= free_blocks || in find_fsync_dnodes()
/linux/include/uapi/linux/
A Dcdrom.h912 __be32 free_blocks; member
/linux/Documentation/ABI/testing/
A Dsysfs-fs-nilfs236 What: /sys/fs/nilfs2/<device>/free_blocks
/linux/fs/xfs/
A Dxfs_log.c1673 int free_blocks; in xlog_grant_push_threshold() local
1682 free_blocks = BTOBBT(free_bytes); in xlog_grant_push_threshold()
1692 if (free_blocks >= free_threshold) in xlog_grant_push_threshold()
/linux/drivers/block/
A Dpktcdvd.c1613 if (ti.free_blocks) in pkt_get_last_written()
1614 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in pkt_get_last_written()
/linux/drivers/cdrom/
A Dcdrom.c2876 if (ti.free_blocks) in cdrom_get_last_written()
2877 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()

Completed in 108 milliseconds