f2fs: fix to clear page private flag
Commit 28bc106b2346 ("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>
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 770cdc9..2e6f537 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -227,6 +227,7 @@
if (drop || recover)
ClearPageUptodate(page);
set_page_private(page, 0);
+ ClearPagePrivate(page);
f2fs_put_page(page, 1);
list_del(&cur->list);