mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] f2fs: avoid unnecessary folio_clear_uptodate() for cleanup
@ 2025-09-02 12:27 Chao Yu
  2025-09-02 12:27 ` [PATCH 2/2] f2fs: clean up error handing of f2fs_submit_page_read() Chao Yu
  2025-09-29 22:30 ` [f2fs-dev] [PATCH 1/2] f2fs: avoid unnecessary folio_clear_uptodate() for cleanup patchwork-bot+f2fs
  0 siblings, 2 replies; 3+ messages in thread
From: Chao Yu @ 2025-09-02 12:27 UTC (permalink / raw)
  To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, Chao Yu

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>
---
 fs/f2fs/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 4254db453b2d..482a362f2625 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1570,7 +1570,7 @@ static struct folio *__get_node_folio(struct f2fs_sb_info *sbi, pgoff_t nid,
 
 	if (unlikely(!folio_test_uptodate(folio))) {
 		err = -EIO;
-		goto out_err;
+		goto out_put_err;
 	}
 
 	if (!f2fs_inode_chksum_verify(sbi, folio)) {
-- 
2.49.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-29 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-02 12:27 [PATCH 1/2] f2fs: avoid unnecessary folio_clear_uptodate() for cleanup Chao Yu
2025-09-02 12:27 ` [PATCH 2/2] f2fs: clean up error handing of f2fs_submit_page_read() Chao Yu
2025-09-29 22:30 ` [f2fs-dev] [PATCH 1/2] f2fs: avoid unnecessary folio_clear_uptodate() for cleanup patchwork-bot+f2fs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome