aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/fat
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-01-25 07:58:39 +0100
committerJens Axboe <axboe@kernel.dk>2023-01-26 10:30:56 -0700
commit9636e650e16f6b01f0044f7662074958c23e4707 (patch)
treee040da863e3d88a1275dd7ed6c24b1a19eb5fa2a /fs/fat
parentfs: move sb_init_dio_done_wq out of direct-io.c (diff)
downloadwireguard-linux-9636e650e16f6b01f0044f7662074958c23e4707.tar.xz
wireguard-linux-9636e650e16f6b01f0044f7662074958c23e4707.zip
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>
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig
index 238cc55f84c4..afe83b4e7172 100644
--- a/fs/fat/Kconfig
+++ b/fs/fat/Kconfig
@@ -2,6 +2,7 @@
config FAT_FS
tristate
select NLS
+ select LEGACY_DIRECT_IO
help
If you want to use one of the FAT-based file systems (the MS-DOS and
VFAT (Windows 95) file systems), then you must say Y or M here