Skip to content

Commit

Permalink
f2fs: fix to clear page private flag
Browse files Browse the repository at this point in the history
Commit 28bc106 ("f2fs: support revoking atomic written pages")
forgot to clear page private flag correctly, fix it.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
chaseyu authored and Jaegeuk Kim committed May 3, 2016
1 parent 23dc974 commit c81ced0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/f2fs/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ static int __revoke_inmem_pages(struct inode *inode,
if (drop || recover)
ClearPageUptodate(page);
set_page_private(page, 0);
ClearPagePrivate(page);
f2fs_put_page(page, 1);

list_del(&cur->list);
Expand Down

0 comments on commit c81ced0

Please sign in to comment.