mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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>
This commit is contained in:
parent
5c145c0318
commit
ec8bb999dc
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user