diff options
author | Christoph Hellwig <hch@lst.de> | 2023-01-25 07:58:39 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-01-26 18:30:56 +0100 |
commit | 9636e650e16f6b01f0044f7662074958c23e4707 (patch) | |
tree | e040da863e3d88a1275dd7ed6c24b1a19eb5fa2a /fs/Makefile | |
parent | fs: move sb_init_dio_done_wq out of direct-io.c (diff) | |
download | linux-9636e650e16f6b01f0044f7662074958c23e4707.tar.xz 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/Makefile')
-rw-r--r-- | fs/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/Makefile b/fs/Makefile index 4dea17840761..606c029e1c9b 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -19,13 +19,14 @@ obj-y := open.o read_write.o file_table.o super.o \ kernel_read_file.o remap_range.o ifeq ($(CONFIG_BLOCK),y) -obj-y += buffer.o direct-io.o mpage.o +obj-y += buffer.o mpage.o else obj-y += no-block.o endif obj-$(CONFIG_PROC_FS) += proc_namespace.o +obj-$(CONFIG_LEGACY_DIRECT_IO) += direct-io.o obj-y += notify/ obj-$(CONFIG_EPOLL) += eventpoll.o obj-y += anon_inodes.o |