Home
last modified time | relevance | path

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

/fs/f2fs/
Dgc.h115 static inline block_t limit_invalid_user_blocks(block_t user_block_count) in limit_invalid_user_blocks() argument
117 return (long)(user_block_count * LIMIT_INVALID_BLOCK) / 100; in limit_invalid_user_blocks()
156 block_t user_block_count = sbi->user_block_count; in has_enough_invalid_blocks() local
157 block_t invalid_user_blocks = user_block_count - in has_enough_invalid_blocks()
165 limit_invalid_user_blocks(user_block_count) && in has_enough_invalid_blocks()
Dsuper.c309 block_t limit = min((sbi->user_block_count >> 3), in limit_reserve_root()
310 sbi->user_block_count - sbi->reserved_blocks); in limit_reserve_root()
351 avail_user_block_count = sbi->user_block_count - in adjust_reserved_segment()
377 F2FS_OPTION(sbi).unusable_cap = sbi->user_block_count; in adjust_unusable_cap_perc()
379 F2FS_OPTION(sbi).unusable_cap = (sbi->user_block_count / 100) * in adjust_unusable_cap_perc()
1788 block_t total_count, user_block_count, start_count; in f2fs_statfs() local
1801 user_block_count = sbi->user_block_count; in f2fs_statfs()
1804 buf->f_bfree = user_block_count - valid_user_blocks(sbi) - in f2fs_statfs()
1819 if (avail_node_count > user_block_count) { in f2fs_statfs()
1820 buf->f_files = user_block_count; in f2fs_statfs()
[all …]
Dgc.c2078 long long user_block_count = in update_fs_metadata() local
2079 le64_to_cpu(F2FS_CKPT(sbi)->user_block_count); in update_fs_metadata()
2086 F2FS_CKPT(sbi)->user_block_count = cpu_to_le64(user_block_count + blks); in update_fs_metadata()
2161 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2193 F2FS_OPTION(sbi).root_reserved_blocks > sbi->user_block_count) in f2fs_resize_fs()
2196 sbi->user_block_count -= shrunk_blocks; in f2fs_resize_fs()
2231 sbi->user_block_count += shrunk_blocks; in f2fs_resize_fs()
Ddebug.c138 si->total_count = (int)sbi->user_block_count / sbi->blocks_per_seg; in update_general_status()
180 * 100 / (int)(sbi->user_block_count >> sbi->log_blocks_per_seg) in update_general_status()
184 * 100 / (int)(sbi->user_block_count >> sbi->log_blocks_per_seg) in update_general_status()
Df2fs.h1609 block_t user_block_count; /* # of user blocks */ member
2251 avail_user_block_count = sbi->user_block_count - in inc_valid_block_count()
2582 unsigned int valid_node_count, user_block_count; in inc_valid_node_count() local
2612 user_block_count = sbi->user_block_count; in inc_valid_node_count()
2614 user_block_count -= sbi->unusable_block_count; in inc_valid_node_count()
2616 if (unlikely(valid_block_count > user_block_count)) { in inc_valid_node_count()
Dsysfs.c457 if (t > (unsigned long)(sbi->user_block_count - in __sbi_store()
466 sbi->user_block_count - valid_user_blocks(sbi)); in __sbi_store()
Drecovery.c57 if (sbi->last_valid_block_count + nalloc > sbi->user_block_count) in f2fs_space_for_roll_forward()
Dsegment.h669 sbi->user_block_count); in utilization()