summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-04-12 14:11:03 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-04-15 08:50:25 -0700
commit63c52d7878903a014fa4c9075afd051b1e77597b (patch)
tree432ccd3568bc54b051dc5ce11919ca359785bc52 /fs/f2fs
parent58457f1c355545c468b8aed5c431d8a6bb71d35d (diff)
downloadlinux-63c52d7878903a014fa4c9075afd051b1e77597b.tar.bz2
f2fs: don't invalidate atomic page if successful
If we committed atomic write successfully, we don't need to invalidate pages. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 299c784f5b61..770cdc95120f 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -223,9 +223,10 @@ static int __revoke_inmem_pages(struct inode *inode,
f2fs_put_dnode(&dn);
}
next:
- ClearPageUptodate(page);
+ /* 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);