iomap: build the writeback code without CONFIG_BLOCK
authorChristoph Hellwig <hch@lst.de>
Thu, 10 Jul 2025 13:33:38 +0000 (15:33 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 14 Jul 2025 08:51:33 +0000 (10:51 +0200)
commit5699b7e21d20912952cdb93c486ef8ed1257c47c
treeced36cddf323966fa562c54fa2990f37f3e22bd1
parentc5690dd0197809bc5305f474a71b2e71e7eac0ff
iomap: build the writeback code without CONFIG_BLOCK

Allow fuse to use the iomap writeback code even when CONFIG_BLOCK is
not enabled.  Do this with an ifdef instead of a separate file to keep
the iomap_folio_state local to buffered-io.c.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/20250710133343.399917-15-hch@lst.de
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/Makefile
fs/iomap/buffered-io.c