mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
iomap: build the block based code conditionally
Only build the block based iomap code if CONFIG_BLOCK is set. Currently that is always the case, but it will change soon. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Link: https://lore.kernel.org/r/20211129102203.2243509-29-hch@lst.de Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
committed by
Dan Williams
parent
2ede892342
commit
ca72d2210f
@@ -15,11 +15,11 @@ config VALIDATE_FS_PARSER
|
|||||||
Enable this to perform validation of the parameter description for a
|
Enable this to perform validation of the parameter description for a
|
||||||
filesystem when it is registered.
|
filesystem when it is registered.
|
||||||
|
|
||||||
if BLOCK
|
|
||||||
|
|
||||||
config FS_IOMAP
|
config FS_IOMAP
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
if BLOCK
|
||||||
|
|
||||||
source "fs/ext2/Kconfig"
|
source "fs/ext2/Kconfig"
|
||||||
source "fs/ext4/Kconfig"
|
source "fs/ext4/Kconfig"
|
||||||
source "fs/jbd2/Kconfig"
|
source "fs/jbd2/Kconfig"
|
||||||
|
@@ -9,9 +9,9 @@ ccflags-y += -I $(srctree)/$(src) # needed for trace events
|
|||||||
obj-$(CONFIG_FS_IOMAP) += iomap.o
|
obj-$(CONFIG_FS_IOMAP) += iomap.o
|
||||||
|
|
||||||
iomap-y += trace.o \
|
iomap-y += trace.o \
|
||||||
buffered-io.o \
|
iter.o
|
||||||
|
iomap-$(CONFIG_BLOCK) += buffered-io.o \
|
||||||
direct-io.o \
|
direct-io.o \
|
||||||
fiemap.o \
|
fiemap.o \
|
||||||
iter.o \
|
|
||||||
seek.o
|
seek.o
|
||||||
iomap-$(CONFIG_SWAP) += swapfile.o
|
iomap-$(CONFIG_SWAP) += swapfile.o
|
||||||
|
Reference in New Issue
Block a user