fs: build the legacy direct I/O code conditionally
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jan 2023 06:58:39 +0000 (07:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Jan 2023 17:30:56 +0000 (10:30 -0700)
commit9636e650e16f6b01f0044f7662074958c23e4707
treee040da863e3d88a1275dd7ed6c24b1a19eb5fa2a
parent439bc39b3cf0014b1b75075812f7ef0f8baa9674
fs: build the legacy direct I/O code conditionally

Add a new LEGACY_DIRECT_IO config symbol that is only selected by the
file systems that still use the legacy blockdev_direct_IO code, so that
kernels without support for those file systems don't need to build the
code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20230125065839.191256-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
14 files changed:
fs/Kconfig
fs/Makefile
fs/affs/Kconfig
fs/exfat/Kconfig
fs/ext2/Kconfig
fs/fat/Kconfig
fs/hfs/Kconfig
fs/hfsplus/Kconfig
fs/jfs/Kconfig
fs/nilfs2/Kconfig
fs/ntfs3/Kconfig
fs/ocfs2/Kconfig
fs/reiserfs/Kconfig
fs/udf/Kconfig