summaryrefslogtreecommitdiff
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-12-15 08:30:45 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-16 00:24:19 +0300
commit2710fd7e00b4f77dbe807efaf546bed00b62e65e (patch)
treefcd67808c9f7e25b369694015c059fb25a9b9d15 /fs/f2fs/debug.c
parenta49324f127dec918f5a3b3f145d0bf2fb81f4588 (diff)
downloadlinux-2710fd7e00b4f77dbe807efaf546bed00b62e65e.tar.xz
f2fs: introduce dirty list node in inode info
Add a new dirt list node member in inode info for linking the inode to global dirty list in superblock, instead of old implementation which allocate slab cache memory as an entry to inode. It avoids memory pressure due to slab cache allocation, and also makes codes more clean. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r--fs/f2fs/debug.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index 8ce2fe3f65ab..f4a7b9e9416d 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -189,7 +189,6 @@ get_cache:
si->cache_mem += NM_I(sbi)->dirty_nat_cnt *
sizeof(struct nat_entry_set);
si->cache_mem += si->inmem_pages * sizeof(struct inmem_pages);
- si->cache_mem += sbi->n_dirty_dirs * sizeof(struct inode_entry);
for (i = 0; i <= UPDATE_INO; i++)
si->cache_mem += sbi->im[i].ino_num * sizeof(struct ino_entry);
si->cache_mem += sbi->total_ext_tree * sizeof(struct extent_tree);