Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/lightnvm/
Dpblk-rl.c99 return atomic_read(&rl->free_blocks); in pblk_rl_nr_free_blks()
108 unsigned long free_blocks) in __pblk_rl_update_rates() argument
114 if (free_blocks >= rl->high) { in __pblk_rl_update_rates()
127 } else if (free_blocks < rl->high) { in __pblk_rl_update_rates()
129 int user_windows = free_blocks >> shift; in __pblk_rl_update_rates()
135 if (free_blocks <= rl->rsv_blocks) { in __pblk_rl_update_rates()
161 int free_blocks; in pblk_rl_free_lines_inc() local
163 atomic_add(blk_in_line, &rl->free_blocks); in pblk_rl_free_lines_inc()
164 free_blocks = atomic_add_return(blk_in_line, &rl->free_user_blocks); in pblk_rl_free_lines_inc()
166 __pblk_rl_update_rates(rl, free_blocks); in pblk_rl_free_lines_inc()
[all …]
Dpblk-sysfs.c52 int free_blocks, free_user_blocks, total_blocks; in pblk_sysfs_rate_limiter() local
56 free_blocks = pblk_rl_nr_free_blks(&pblk->rl); in pblk_sysfs_rate_limiter()
76 free_blocks, in pblk_sysfs_rate_limiter()
Dpblk.h300 atomic_t free_blocks; /* Total number of free blocks (+ OP) */ member
Dpblk-init.c701 atomic_set(&pblk->rl.free_blocks, nr_free_blks); in pblk_set_provision()
/linux-4.19.296/fs/ext2/
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()
1183 ext2_fsblk_t free_blocks, root_blocks; in ext2_has_free_blocks() local
1185 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in ext2_has_free_blocks()
1187 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks()
1243 ext2_grpblk_t free_blocks; /* number of free blocks in a group */ in ext2_new_blocks() local
1304 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1309 if (my_rsv && (free_blocks < windowsz) in ext2_new_blocks()
1310 && (free_blocks > 0) in ext2_new_blocks()
[all …]
Dialloc.c269 int free_blocks; in find_group_orlov() local
279 free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); in find_group_orlov()
280 avefreeb = free_blocks / ngroups; in find_group_orlov()
317 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
/linux-4.19.296/fs/reiserfs/
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-4.19.296/fs/gfs2/
Dlog.c363 unsigned int free_blocks; in gfs2_log_reserve() local
370 free_blocks = atomic_read(&sdp->sd_log_blks_free); in gfs2_log_reserve()
371 if (unlikely(free_blocks <= wanted)) { in gfs2_log_reserve()
379 free_blocks = atomic_read(&sdp->sd_log_blks_free); in gfs2_log_reserve()
380 } while(free_blocks <= wanted); in gfs2_log_reserve()
384 if (atomic_cmpxchg(&sdp->sd_log_blks_free, free_blocks, in gfs2_log_reserve()
385 free_blocks - blks) != free_blocks) { in gfs2_log_reserve()
Drgrp.c1556 u32 free_blocks = rgd_free(rgd, rs); in rg_mblk_search() local
1564 extlen = clamp(extlen, RGRP_RSRV_MINBLKS, free_blocks); in rg_mblk_search()
1566 if ((rgd->rd_free_clone < rgd->rd_reserved) || (free_blocks < extlen)) in rg_mblk_search()
2037 u32 free_blocks, skip = 0; in gfs2_inplace_reserve() local
2108 free_blocks = rgd_free(rs->rs_rbm.rgd, rs); in gfs2_inplace_reserve()
2109 if (free_blocks >= ap->target || in gfs2_inplace_reserve()
2111 free_blocks >= ap->min_target)) { in gfs2_inplace_reserve()
2112 ap->allowed = free_blocks; in gfs2_inplace_reserve()
/linux-4.19.296/fs/hfsplus/
Dsuper.c211 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks); in hfsplus_sync_fs()
318 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()
Dbitmap.c156 sbi->free_blocks -= *max; in hfsplus_block_allocate()
235 sbi->free_blocks += len; in hfsplus_block_free()
Dhfsplus_raw.h121 __be32 free_blocks; member
Dextents.c449 sbi->total_blocks - sbi->free_blocks + 8) { in hfsplus_file_extend()
453 sbi->total_blocks, sbi->free_blocks); in hfsplus_file_extend()
Dhfsplus_fs.h170 u32 free_blocks; member
Dxattr.c188 if (sbi->free_blocks <= (hip->clump_blocks << 1)) { in hfsplus_create_attributes_file()
/linux-4.19.296/fs/nilfs2/
Dsysfs.c877 sector_t free_blocks = 0; in nilfs_dev_free_blocks_show() local
879 nilfs_count_free_blocks(nilfs, &free_blocks); in nilfs_dev_free_blocks_show()
881 (unsigned long long)free_blocks); in nilfs_dev_free_blocks_show()
925 NILFS_DEV_RO_ATTR(free_blocks);
934 NILFS_DEV_ATTR_LIST(free_blocks),
/linux-4.19.296/fs/ext4/
Dresize.c1396 ext4_fsblk_t free_blocks = 0; in ext4_update_super() local
1416 free_blocks += EXT4_C2B(sbi, group_data[i].free_clusters_count); in ext4_update_super()
1425 ext4_free_blocks_count_set(es, ext4_free_blocks_count(es) + free_blocks); in ext4_update_super()
1464 EXT4_NUM_B2C(sbi, free_blocks)); in ext4_update_super()
1476 atomic64_add(EXT4_NUM_B2C(sbi, free_blocks), in ext4_update_super()
1491 blocks_count, free_blocks, reserved_blocks); in ext4_update_super()
/linux-4.19.296/fs/f2fs/
Drecovery.c269 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes() local
328 if (++loop_cnt >= free_blocks || in find_fsync_dnodes()
/linux-4.19.296/include/uapi/linux/
Dcdrom.h890 __be32 free_blocks; member
/linux-4.19.296/fs/xfs/
Dxfs_log.c1638 int free_blocks; in xlog_grant_push_ail() local
1647 free_blocks = BTOBBT(free_bytes); in xlog_grant_push_ail()
1657 if (free_blocks >= free_threshold) in xlog_grant_push_ail()
/linux-4.19.296/drivers/cdrom/
Dcdrom.c2882 if (ti.free_blocks) in cdrom_get_last_written()
2883 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()