gfs2: Convert gfs2_page_mkwrite() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 3 Apr 2024 17:23:48 +0000 (18:23 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 29 Apr 2024 11:04:40 +0000 (13:04 +0200)
commitf3851fed07327b6a19e7ff8c2106e2b424f44cca
treea38bcd54d214d4a378b3cb58b7906e78f214b828
parentfcd63086bc14b1689866d7b0c61958f6b7e48604
gfs2: Convert gfs2_page_mkwrite() to use a folio

Convert the incoming page to a folio and use it throughout, saving
several calls to compound_head().  Also use 'pos' for file position
rather than the ambiguous 'offset' and convert 'length' to type size_t
in case we get some truly ridiculous sized folios in the future.  This
function should now be large-folio safe, but I may have missed
something.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c