mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-26 19:36:41 +00:00
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>
This commit is contained in:
parent
58457f1c35
commit
63c52d7878
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user