Commit 63c52d78 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: don't invalidate atomic page if successful

If we committed atomic write successfully, we don't need to invalidate pages.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 58457f1c
......@@ -223,9 +223,10 @@ static int __revoke_inmem_pages(struct inode *inode,
f2fs_put_dnode(&dn);
}
next:
/* we don't need to invalidate this in the sccessful status */
if (drop || recover)
ClearPageUptodate(page);
set_page_private(page, 0);
ClearPageUptodate(page);
f2fs_put_page(page, 1);
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