summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-05-20 20:10:10 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2016-06-03 03:05:11 +0200
commit0f18b462b2e5aff64b8638e8a47284b907351ef3 (patch)
treeb39406fe286595610a0e5f785fb9913551df898d /fs/f2fs/node.c
parentf2fs: call mark_inode_dirty_sync for i_field changes (diff)
downloadlinux-0f18b462b2e5aff64b8638e8a47284b907351ef3.tar.xz
linux-0f18b462b2e5aff64b8638e8a47284b907351ef3.zip
f2fs: flush inode metadata when checkpoint is doing
This patch registers all the inodes which have dirty metadata to sync when checkpoint is doing. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 0635304c50ac..1965351b644c 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -670,6 +670,7 @@ static void truncate_node(struct dnode_of_data *dn)
if (dn->nid == dn->inode->i_ino) {
remove_orphan_inode(sbi, dn->nid);
dec_valid_inode_count(sbi);
+ f2fs_inode_synced(dn->inode);
} else {
sync_inode_page(dn);
}