diff options
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 99e9a5c37b71..7706049d23bf 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -27,8 +27,15 @@ static DEFINE_MUTEX(f2fs_stat_mutex); | |||
27 | static void update_general_status(struct f2fs_sb_info *sbi) | 27 | static void update_general_status(struct f2fs_sb_info *sbi) |
28 | { | 28 | { |
29 | struct f2fs_stat_info *si = F2FS_STAT(sbi); | 29 | struct f2fs_stat_info *si = F2FS_STAT(sbi); |
30 | struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); | ||
30 | int i; | 31 | int i; |
31 | 32 | ||
33 | /* these will be changed if online resize is done */ | ||
34 | si->main_area_segs = le32_to_cpu(raw_super->segment_count_main); | ||
35 | si->main_area_sections = le32_to_cpu(raw_super->section_count); | ||
36 | si->main_area_zones = si->main_area_sections / | ||
37 | le32_to_cpu(raw_super->secs_per_zone); | ||
38 | |||
32 | /* validation check of the segment numbers */ | 39 | /* validation check of the segment numbers */ |
33 | si->hit_largest = atomic64_read(&sbi->read_hit_largest); | 40 | si->hit_largest = atomic64_read(&sbi->read_hit_largest); |
34 | si->hit_cached = atomic64_read(&sbi->read_hit_cached); | 41 | si->hit_cached = atomic64_read(&sbi->read_hit_cached); |