projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c3acd9
)
f2fs: fix not to set fsync/dentry mark
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 Apr 2017 19:02:00 +0000
(12:02 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 Apr 2017 19:57:09 +0000
(12:57 -0700)
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>
fs/f2fs/node.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/node.c
b/fs/f2fs/node.c
index 9422dd2528131b122828415099438f9656be956f..ad54e907b97b2798cb0a42466279b47731d62f7d 100644
(file)
--- 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)) {