]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: add public helpers for uptodate state manipulation
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 10 Jul 2025 13:33:30 +0000 (15:33 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 14 Jul 2025 08:51:32 +0000 (10:51 +0200)
commit9caf1ea80cedf7d35d9371c44fbe5f84b0da667a
tree3e4b6879abc58e80174e58c426b2bd3ccc4c71d2
parentf4fa7981fa26c664cc540cbce9bcb7ffe02a8912
iomap: add public helpers for uptodate state manipulation

Add a new iomap_start_folio_write helper to abstract away the
write_bytes_pending handling, and export it and the existing
iomap_finish_folio_write for non-iomap writeback in fuse.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
[hch: split from a larger patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/20250710133343.399917-7-hch@lst.de
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c
include/linux/iomap.h