Skip to content

Commit ca72d22

Browse files
Christoph Hellwigdjbw
authored andcommitted
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 <[email protected]> Reviewed-by: Dan Williams <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 2ede892 commit ca72d22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fs/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ config VALIDATE_FS_PARSER
1515
Enable this to perform validation of the parameter description for a
1616
filesystem when it is registered.
1717

18-
if BLOCK
19-
2018
config FS_IOMAP
2119
bool
2220

21+
if BLOCK
22+
2323
source "fs/ext2/Kconfig"
2424
source "fs/ext4/Kconfig"
2525
source "fs/jbd2/Kconfig"

fs/iomap/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ ccflags-y += -I $(srctree)/$(src) # needed for trace events
99
obj-$(CONFIG_FS_IOMAP) += iomap.o
1010

1111
iomap-y += trace.o \
12-
buffered-io.o \
12+
iter.o
13+
iomap-$(CONFIG_BLOCK) += buffered-io.o \
1314
direct-io.o \
1415
fiemap.o \
15-
iter.o \
1616
seek.o
1717
iomap-$(CONFIG_SWAP) += swapfile.o

0 commit comments

Comments
 (0)