diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-20 11:10:10 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-02 18:05:11 -0700 |
commit | 0f18b462b2e5aff64b8638e8a47284b907351ef3 (patch) | |
tree | b39406fe286595610a0e5f785fb9913551df898d /fs/f2fs/node.c | |
parent | 205b98221cdf72b1cbdedf55f93d193999616e6e (diff) | |
download | linux-0f18b462b2e5aff64b8638e8a47284b907351ef3.tar.gz linux-0f18b462b2e5aff64b8638e8a47284b907351ef3.tar.bz2 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.c | 1 |
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); } |