Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);