diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-01-16 07:25:43 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-01-17 03:00:35 +0300 |
| commit | ec8bb999dc0c5d64a3366ce8765a479305a82029 (patch) | |
| tree | 532a1129671ae6709541e73f251c3260741687da | |
| parent | 5c145c03188bc9ba1c29e0bc4d527a5978fc47f9 (diff) | |
| download | linux-ec8bb999dc0c5d64a3366ce8765a479305a82029.tar.xz | |
f2fs: use folio_end_read
No logic change.
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/data.c | 10 |
1 files 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 @@ submit_and_realloc: } 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; } |
