f2fs: fix to clear page private flag
authorChao Yu <yuchao0@huawei.com>
Fri, 29 Apr 2016 12:13:36 +0000 (20:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 3 May 2016 18:20:06 +0000 (11:20 -0700)
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>
fs/f2fs/segment.c

index 770cdc95120f377543483b89e49364abd807fc78..2e6f537a0e7df7df4b449df05f222ff4bc5a90b4 100644 (file)
@@ -227,6 +227,7 @@ next:
                if (drop || recover)
                        ClearPageUptodate(page);
                set_page_private(page, 0);
+               ClearPagePrivate(page);
                f2fs_put_page(page, 1);
 
                list_del(&cur->list);