mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07: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:
+3
-7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user