summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-12-16 06:09:20 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-16 17:58:12 +0100
commitc227f912732f204c0ec4a577ba812401ac4672af (patch)
tree86bb9eb87ccf717cbe486d1d1b7e0eab31e10cbc /fs/f2fs/super.c
parentf2fs: introduce __f2fs_commit_super (diff)
downloadlinux-c227f912732f204c0ec4a577ba812401ac4672af.tar.xz
linux-c227f912732f204c0ec4a577ba812401ac4672af.zip
f2fs: record dirty status of regular/symlink inode
Maintain regular/symlink inode which has dirty pages in global dirty list and record their total dirty pages count like the way of handling directory inode. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index bc1a8cd38bc8..5b596d6a8d24 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1339,8 +1339,10 @@ try_onemore:
le64_to_cpu(sbi->ckpt->valid_block_count);
sbi->last_valid_block_count = sbi->total_valid_block_count;
sbi->alloc_valid_block_count = 0;
- INIT_LIST_HEAD(&sbi->dir_inode_list);
- spin_lock_init(&sbi->dir_inode_lock);
+ for (i = 0; i < NR_INODE_TYPE; i++) {
+ INIT_LIST_HEAD(&sbi->inode_list[i]);
+ spin_lock_init(&sbi->inode_lock[i]);
+ }
init_extent_cache_info(sbi);