From: Jaegeuk Kim <jaegeuk@kernel.org>
To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@kernel.org>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>
Subject: [PATCH] f2fs: use folio_end_read
Date: Fri, 16 Jan 2026 04:32:02 +0000 [thread overview]
Message-ID: <20260116043203.2313943-1-jaegeuk@kernel.org> (raw)
No logic change.
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fs/f2fs/data.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 4e2f10bd2b07..5b4832956196 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -2566,19 +2566,15 @@ static int f2fs_read_data_large_folio(struct inode *inode,
}
trace_f2fs_read_folio(folio, DATA);
if (rac) {
- if (!folio_in_bio) {
- folio_mark_uptodate(folio);
- folio_unlock(folio);
- }
+ if (!folio_in_bio)
+ folio_end_read(folio, true);
folio = readahead_folio(rac);
goto next_folio;
}
err_out:
/* Nothing was submitted. */
if (!bio) {
- if (!ret)
- folio_mark_uptodate(folio);
- folio_unlock(folio);
+ folio_end_read(folio, !ret);
return ret;
}
--
2.52.0.457.g6b5491de43-goog
next reply other threads:[~2026-01-16 4:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 4:32 Jaegeuk Kim [this message]
2026-01-16 8:54 ` [f2fs-dev] " Chao Yu
2026-01-19 13:50 ` patchwork-bot+f2fs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260116043203.2313943-1-jaegeuk@kernel.org \
--to=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®