summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-04-12 21:02:00 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-12 21:57:09 +0200
commitd29fd17218515387c1eb36740f0f6f03d0d264d4 (patch)
tree19115e696bdd5a14dfc509b7ba1b1df3574615d5 /fs/f2fs
parentf2fs: allocate hot_data for atomic writes (diff)
downloadlinux-d29fd17218515387c1eb36740f0f6f03d0d264d4.tar.xz
linux-d29fd17218515387c1eb36740f0f6f03d0d264d4.zip
f2fs: fix not to set fsync/dentry mark
Otherwise, we can see stale fsync/dentry mark given by previous calls, resulting in giving up roll-forward recovery due to wrong dentry mark. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/node.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 9422dd252813..ad54e907b97b 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1458,6 +1458,9 @@ continue_unlock:
f2fs_wait_on_page_writeback(page, NODE, true);
BUG_ON(PageWriteback(page));
+ set_fsync_mark(page, 0);
+ set_dentry_mark(page, 0);
+
if (!atomic || page == last_page) {
set_fsync_mark(page, 1);
if (IS_INODE(page)) {