Skip to contentSkip to conversation

f2fs: use folio_end_read

PATCH Applied Jaegeuk Kim 3 participants 3 messages Jan 16 – Jan 19 F2FS file system

lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: use folio_end_read

No logic change.

---
 fs/f2fs/data.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
fs/f2fs/data.c +3 -7
index 4e2f10bd2b07..5b4832956196 100644
@@ -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;
 	}
 
Signature · 1 line
2.52.0.457.g6b5491de43-goog
#2 lore raw
In reply to Jaegeuk Kim
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 7 lines · On Fri, 16 Jan 2026 04:32:02 +0000 you wrote:

No logic change.

---
 fs/f2fs/data.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

Here is the summary with links:
- [f2fs-dev] f2fs: use folio_end_read

    https://git.kernel.org/jaegeuk/f2fs/c/ec8bb999dc0c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html