]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
f2fs: avoid unnecessary folio_clear_uptodate() for cleanup
authorChao Yu <chao@kernel.org>
Tue, 2 Sep 2025 12:27:19 +0000 (20:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Sep 2025 03:26:41 +0000 (03:26 +0000)
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>
fs/f2fs/node.c

index 4254db453b2d31ce2ed5ff5c5983f600be1afd8d..482a362f262543948c5baea5bd80a1cdd2c7f3aa 100644 (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)) {