diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-10-20 03:27:56 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 21:11:09 +0100 |
commit | 18340edc8da20b0d399eb25ba4bb631b27652f46 (patch) | |
tree | 74d27396c2f5be10db454f003cc263fdb51aa11c /fs/f2fs/checkpoint.c | |
parent | f2fs: keep dirty inodes selectively for checkpoint (diff) | |
download | linux-18340edc8da20b0d399eb25ba4bb631b27652f46.tar.xz linux-18340edc8da20b0d399eb25ba4bb631b27652f46.zip |
f2fs: make clean inodes when flushing inode page
This patch tries to make more clean inodes when flushing dirty inodes in
checkpoint.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 157b7fdc2c67..e5677e4a69d6 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -921,7 +921,11 @@ int f2fs_sync_inode_meta(struct f2fs_sb_info *sbi) inode = igrab(&fi->vfs_inode); spin_unlock(&sbi->inode_lock[DIRTY_META]); if (inode) { - update_inode_page(inode); + sync_inode_metadata(inode, 0); + + /* it's on eviction */ + if (is_inode_flag_set(inode, FI_DIRTY_INODE)) + update_inode_page(inode); iput(inode); } }; |