Skip to content

Commit 7a4847e

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
iomap: use folio_end_read()
Combine the setting of the uptodate flag with the clearing of the locked flag. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Albert Ou <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Andreas Dilger <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Cc: Matt Turner <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: "Theodore Ts'o" <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: Vasily Gorbik <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6ba924d commit 7a4847e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/iomap/buffered-io.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,8 @@ static void iomap_finish_folio_read(struct folio *folio, size_t off,
270270

271271
if (error)
272272
folio_set_error(folio);
273-
if (uptodate)
274-
folio_mark_uptodate(folio);
275273
if (finished)
276-
folio_unlock(folio);
274+
folio_end_read(folio, uptodate);
277275
}
278276

279277
static void iomap_read_end_io(struct bio *bio)

0 commit comments

Comments
 (0)