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
parent
44749759d5
commit
2f84e99d61
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue