diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-11-13 18:27:35 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-04 11:52:35 -0800 |
commit | f478f43fa0d8f38537848d298980955244afdaee (patch) | |
tree | 78e2adb81e2a2590e95fa00f8c928f0a71781f68 /fs/f2fs/segment.c | |
parent | 692223d132067ef2c392adec6f1324d581496212 (diff) | |
download | blackbird-op-linux-f478f43fa0d8f38537848d298980955244afdaee.tar.gz blackbird-op-linux-f478f43fa0d8f38537848d298980955244afdaee.zip |
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: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index efbf6b5f1dc3..ed2c5dec7526 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -247,6 +247,7 @@ int commit_inmem_pages(struct inode *inode, bool abort) submit_bio = true; } } else { + ClearPageUptodate(cur->page); trace_f2fs_commit_inmem_page(cur->page, INMEM_DROP); } set_page_private(cur->page, 0); |