Skip to content

Commit

Permalink
f2fs: fix not to set fsync/dentry mark
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Apr 12, 2017
1 parent 6c3acd9 commit d29fd17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/f2fs/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,9 @@ int fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
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)) {
Expand Down

0 comments on commit d29fd17

Please sign in to comment.