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

f2fs: fix to clear page private flag

Commit 28bc106b ("f2fs: support revoking atomic written pages")
forgot to clear page private flag correctly, fix it.
Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 23dc974e
...@@ -227,6 +227,7 @@ static int __revoke_inmem_pages(struct inode *inode, ...@@ -227,6 +227,7 @@ static int __revoke_inmem_pages(struct inode *inode,
if (drop || recover) if (drop || recover)
ClearPageUptodate(page); ClearPageUptodate(page);
set_page_private(page, 0); set_page_private(page, 0);
ClearPagePrivate(page);
f2fs_put_page(page, 1); f2fs_put_page(page, 1);
list_del(&cur->list); list_del(&cur->list);
......
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