]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: convert stuffed_readpage() to stuffed_read_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 7 Nov 2023 21:26:42 +0000 (21:26 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:28 +0000 (13:16 -0800)
commit7178cdd5b4f9dd539c922a5d93dad71e922da09d
treea0d7ef63fc092d2cd081b75317c3072cf7979e0e
parentef256d566e6463b5bea4d1e49d3a4d025d4d4712
gfs2: convert stuffed_readpage() to stuffed_read_folio()

Use folio_fill_tail() to implement the unstuffing and folio_end_read() to
simultaneously mark the folio uptodate and unlock it.  Unifies a couple of
code paths.

Link: https://lkml.kernel.org/r/20231107212643.3490372-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/gfs2/aops.c