mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 07:46:46 +07:00
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>
This commit is contained in:
parent
692223d132
commit
f478f43fa0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user