Skip to content

Commit 2f84e99

Browse files
chaseyuJaegeuk Kim
authored andcommitted
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>
1 parent 4474975 commit 2f84e99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/f2fs/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ static struct folio *__get_node_folio(struct f2fs_sb_info *sbi, pgoff_t nid,
15701570

15711571
if (unlikely(!folio_test_uptodate(folio))) {
15721572
err = -EIO;
1573-
goto out_err;
1573+
goto out_put_err;
15741574
}
15751575

15761576
if (!f2fs_inode_chksum_verify(sbi, folio)) {

0 commit comments

Comments
 (0)