Home
last modified time | relevance | path

Searched refs:user_block_count (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/fs/f2fs/
Dgc.h123 static inline block_t limit_invalid_user_blocks(block_t user_block_count) in limit_invalid_user_blocks() argument
125 return (long)(user_block_count * LIMIT_INVALID_BLOCK) / 100; in limit_invalid_user_blocks()
164 block_t user_block_count = sbi->user_block_count; in has_enough_invalid_blocks() local
165 block_t invalid_user_blocks = user_block_count - in has_enough_invalid_blocks()
173 limit_invalid_user_blocks(user_block_count) && in has_enough_invalid_blocks()
Dsuper.c304 block_t limit = min((sbi->user_block_count >> 3), in limit_reserve_root()
305 sbi->user_block_count - sbi->reserved_blocks); in limit_reserve_root()
346 avail_user_block_count = sbi->user_block_count - in adjust_reserved_segment()
372 F2FS_OPTION(sbi).unusable_cap = sbi->user_block_count; in adjust_unusable_cap_perc()
374 F2FS_OPTION(sbi).unusable_cap = (sbi->user_block_count / 100) * in adjust_unusable_cap_perc()
1738 block_t total_count, user_block_count, start_count; in f2fs_statfs() local
1751 user_block_count = sbi->user_block_count; in f2fs_statfs()
1754 buf->f_bfree = user_block_count - valid_user_blocks(sbi) - in f2fs_statfs()
1769 if (avail_node_count > user_block_count) { in f2fs_statfs()
1770 buf->f_files = user_block_count; in f2fs_statfs()
[all …]
Dgc.c2046 long long user_block_count = in update_fs_metadata() local
2047 le64_to_cpu(F2FS_CKPT(sbi)->user_block_count); in update_fs_metadata()
2054 F2FS_CKPT(sbi)->user_block_count = cpu_to_le64(user_block_count + blks); in update_fs_metadata()
2122 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2144 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2147 sbi->user_block_count -= shrunk_blocks; in f2fs_resize_fs()
2182 sbi->user_block_count += shrunk_blocks; in f2fs_resize_fs()
Ddebug.c127 si->total_count = (int)sbi->user_block_count / sbi->blocks_per_seg; in update_general_status()
169 * 100 / (int)(sbi->user_block_count >> sbi->log_blocks_per_seg) in update_general_status()
173 * 100 / (int)(sbi->user_block_count >> sbi->log_blocks_per_seg) in update_general_status()
Df2fs.h1699 block_t user_block_count; /* # of user blocks */ member
2332 avail_user_block_count = sbi->user_block_count - in inc_valid_block_count()
2583 unsigned int valid_node_count, user_block_count; in inc_valid_node_count() local
2615 user_block_count = sbi->user_block_count; in inc_valid_node_count()
2617 user_block_count -= sbi->unusable_block_count; in inc_valid_node_count()
2619 if (unlikely(valid_block_count > user_block_count)) { in inc_valid_node_count()
Dsysfs.c461 if (t > (unsigned long)(sbi->user_block_count - in __sbi_store()
470 sbi->user_block_count - valid_user_blocks(sbi)); in __sbi_store()
Dsegment.h652 sbi->user_block_count); in utilization()
Drecovery.c57 if (sbi->last_valid_block_count + nalloc > sbi->user_block_count) in f2fs_space_for_roll_forward()
/linux-6.1.9/include/linux/
Df2fs_fs.h184 __le64 user_block_count; /* # of user blocks */ member
/linux-6.1.9/drivers/memstick/core/
Dmspro_block.c73 __be16 user_block_count; member
300 be16_to_cpu(x_sys->user_block_count)); in mspro_block_attr_show_sysinfo()
1196 capacity = be16_to_cpu(sys_info->user_block_count); in mspro_block_init_disk()