]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
iomap: rework iomap_write_begin() to return folio offset and length
authorBrian Foster <bfoster@redhat.com>
Tue, 6 May 2025 13:41:18 +0000 (09:41 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 9 May 2025 10:35:30 +0000 (12:35 +0200)
commit66c0d855142835a9fd12478299cc337777d6225e
tree7127142957b29097c0274fce176e64fba20ff7a4
parentc0f8658a9dbc563876364a0fcfec823d73d6fae2
iomap: rework iomap_write_begin() to return folio offset and length

iomap_write_begin() returns a folio based on current pos and
remaining length in the iter, and each caller then trims the
pos/length to the given folio. Clean this up a bit and let
iomap_write_begin() return the trimmed range along with the folio.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/20250506134118.911396-7-bfoster@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c