Searched refs:user_block_count (Results 1 – 10 of 10) sorted by relevance
123 static inline block_t limit_invalid_user_blocks(block_t user_block_count) in limit_invalid_user_blocks() argument125 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() local165 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()
304 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() local1751 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 …]
2046 long long user_block_count = in update_fs_metadata() local2047 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()
127 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()
1699 block_t user_block_count; /* # of user blocks */ member2332 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() local2615 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()
461 if (t > (unsigned long)(sbi->user_block_count - in __sbi_store()470 sbi->user_block_count - valid_user_blocks(sbi)); in __sbi_store()
652 sbi->user_block_count); in utilization()
57 if (sbi->last_valid_block_count + nalloc > sbi->user_block_count) in f2fs_space_for_roll_forward()
184 __le64 user_block_count; /* # of user blocks */ member
73 __be16 user_block_count; member300 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()