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: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9db5be4af8
commit
c4408c2387
1 changed files with 2 additions and 0 deletions
|
|
@ -230,6 +230,8 @@ static int __revoke_inmem_pages(struct inode *inode,
|
|||
|
||||
lock_page(page);
|
||||
|
||||
f2fs_wait_on_page_writeback(page, DATA, true);
|
||||
|
||||
if (recover) {
|
||||
struct dnode_of_data dn;
|
||||
struct node_info ni;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue