Skip to content

Commit

Permalink
f2fs: fix to wait page writeback during revoking atomic write
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chao Yu authored and Jaegeuk Kim committed May 31, 2018
1 parent 60b2b4e commit e5e5732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/f2fs/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e5e5732

Please sign in to comment.