iomap: Add __iomap_put_folio helper
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 15 Jan 2023 16:45:50 +0000 (08:45 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 18 Jan 2023 18:44:04 +0000 (10:44 -0800)
commit7a70a5085ed028b4fd132447cbaea9b73113bca9
tree3acca07c9073e68878896469d2eddef38a9a37b4
parent5dc4c995db9eb45f6373a956eb1f69460e69e6d4
iomap: Add __iomap_put_folio helper

Add an __iomap_put_folio() helper to encapsulate unlocking the folio,
calling ->page_done(), and putting the folio.  Use the new helper in
iomap_write_begin() and iomap_write_end().

This effectively doesn't change the way the code works, but prepares for
successive improvements.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c