summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-04-12 12:02:00 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-12 12:57:09 -0700
commitd29fd17218515387c1eb36740f0f6f03d0d264d4 (patch)
tree19115e696bdd5a14dfc509b7ba1b1df3574615d5 /fs
parent6c3acd97572b2414075503aa79f305c1d6268114 (diff)
downloadop-kernel-dev-d29fd17218515387c1eb36740f0f6f03d0d264d4.zip
op-kernel-dev-d29fd17218515387c1eb36740f0f6f03d0d264d4.tar.gz
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')
-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 9422dd2..ad54e90 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)) {
OpenPOWER on IntegriCloud