f2fs: avoid unnecessary folio_clear_uptodate() for cleanup

In error path of __get_node_folio(), if the folio is not uptodate, let's
avoid unnecessary folio_clear_uptodate() for cleanup.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
pull/1354/merge
Chao Yu 2025-09-02 20:27:19 +08:00 committed by Jaegeuk Kim
parent 44749759d5
commit 2f84e99d61
1 changed files with 1 additions and 1 deletions

View File

@ -1570,7 +1570,7 @@ repeat:
if (unlikely(!folio_test_uptodate(folio))) {
err = -EIO;
goto out_err;
goto out_put_err;
}
if (!f2fs_inode_chksum_verify(sbi, folio)) {