diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-02 16:45:12 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:33:36 +0200 |
| commit | e1f038381f98449e99d5217419207ab8a76765e4 (patch) | |
| tree | 2f3d2a7ac979a1ccf81a04fa46165a467ca10b75 /fs/f2fs/debug.c | |
| parent | fbdf795342af856a9aa0552a43a48d4431e38c4c (diff) | |
f2fs: adjust other changes
This patch changes:
- PAGE_CACHE_*
- inode_lock
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
| -rw-r--r-- | fs/f2fs/debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 39cb2bc55..4e87a67c0 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@ -166,7 +166,7 @@ static void update_mem_info(struct f2fs_sb_info *sbi) /* build curseg */ si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE; - si->base_mem += PAGE_CACHE_SIZE * NR_CURSEG_TYPE; + si->base_mem += PAGE_SIZE * NR_CURSEG_TYPE; /* build dirty segmap */ si->base_mem += sizeof(struct dirty_seglist_info); @@ -203,9 +203,9 @@ get_cache: si->page_mem = 0; npages = NODE_MAPPING(sbi)->nrpages; - si->page_mem += (unsigned long long)npages << PAGE_CACHE_SHIFT; + si->page_mem += (unsigned long long)npages << PAGE_SHIFT; npages = META_MAPPING(sbi)->nrpages; - si->page_mem += (unsigned long long)npages << PAGE_CACHE_SHIFT; + si->page_mem += (unsigned long long)npages << PAGE_SHIFT; } static int stat_show(struct seq_file *s, void *v) |
