On Wed, Jan 25, 2023 at 07:58:39AM +0100, Christoph Hellwig wrote: > 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@xxxxxx> > --- > fs/Kconfig | 4 ++++ > fs/Makefile | 3 ++- > fs/affs/Kconfig | 1 + > fs/exfat/Kconfig | 1 + > fs/ext2/Kconfig | 1 + > fs/fat/Kconfig | 1 + > fs/hfs/Kconfig | 1 + > fs/hfsplus/Kconfig | 1 + > fs/jfs/Kconfig | 1 + > fs/nilfs2/Kconfig | 1 + > fs/ntfs3/Kconfig | 1 + > fs/ocfs2/Kconfig | 1 + > fs/reiserfs/Kconfig | 1 + > fs/udf/Kconfig | 1 + > 14 files changed, 18 insertions(+), 1 deletion(-) > > diff --git a/fs/Kconfig b/fs/Kconfig > index 2685a4d0d35318..e99830c650336a 100644 > --- a/fs/Kconfig > +++ b/fs/Kconfig > @@ -18,6 +18,10 @@ config VALIDATE_FS_PARSER > config FS_IOMAP > bool > > +# old blockdev_direct_IO implementation. Use iomap for new code instead > +config LEGACY_DIRECT_IO > + bool > + > if BLOCK > Reviewed-by: Eric Biggers <ebiggers@xxxxxxxxxx> - Eric