aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r--fs/f2fs/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index 4fb6ef88a34f..f4a61a5ff79f 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -164,7 +164,7 @@ static void update_mem_info(struct f2fs_sb_info *sbi)
164 164
165 /* build curseg */ 165 /* build curseg */
166 si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE; 166 si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE;
167 si->base_mem += PAGE_CACHE_SIZE * NR_CURSEG_TYPE; 167 si->base_mem += PAGE_SIZE * NR_CURSEG_TYPE;
168 168
169 /* build dirty segmap */ 169 /* build dirty segmap */
170 si->base_mem += sizeof(struct dirty_seglist_info); 170 si->base_mem += sizeof(struct dirty_seglist_info);
@@ -201,9 +201,9 @@ get_cache:
201 201
202 si->page_mem = 0; 202 si->page_mem = 0;
203 npages = NODE_MAPPING(sbi)->nrpages; 203 npages = NODE_MAPPING(sbi)->nrpages;
204 si->page_mem += (unsigned long long)npages << PAGE_CACHE_SHIFT; 204 si->page_mem += (unsigned long long)npages << PAGE_SHIFT;
205 npages = META_MAPPING(sbi)->nrpages; 205 npages = META_MAPPING(sbi)->nrpages;
206 si->page_mem += (unsigned long long)npages << PAGE_CACHE_SHIFT; 206 si->page_mem += (unsigned long long)npages << PAGE_SHIFT;
207} 207}
208 208
209static int stat_show(struct seq_file *s, void *v) 209static int stat_show(struct seq_file *s, void *v)