Commit e5e5732d authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim

f2fs: fix to wait page writeback during revoking atomic write

After revoking atomic write, related LBA can be reused by others, so we
need to wait page writeback before reusing the LBA, in order to avoid
interference between old atomic written in-flight IO and new IO.
Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 60b2b4ee
...@@ -230,6 +230,8 @@ static int __revoke_inmem_pages(struct inode *inode, ...@@ -230,6 +230,8 @@ static int __revoke_inmem_pages(struct inode *inode,
lock_page(page); lock_page(page);
f2fs_wait_on_page_writeback(page, DATA, true);
if (recover) { if (recover) {
struct dnode_of_data dn; struct dnode_of_data dn;
struct node_info ni; struct node_info ni;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment