提交 f478f43f 编写于 作者: C Chao Yu 提交者: Jaegeuk Kim

f2fs: clear page uptodate when dropping cache for atomic write

We should clear uptodate flag for all pages atomic written when we drop
them, otherwise before these cached pages were reclaimed or invalidated
eventually, we will see invalid data when hitting them again.
Signed-off-by: NChao Yu <chao2.yu@samsung.com>
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 692223d1
...@@ -247,6 +247,7 @@ int commit_inmem_pages(struct inode *inode, bool abort) ...@@ -247,6 +247,7 @@ int commit_inmem_pages(struct inode *inode, bool abort)
submit_bio = true; submit_bio = true;
} }
} else { } else {
ClearPageUptodate(cur->page);
trace_f2fs_commit_inmem_page(cur->page, INMEM_DROP); trace_f2fs_commit_inmem_page(cur->page, INMEM_DROP);
} }
set_page_private(cur->page, 0); set_page_private(cur->page, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册