diff options
author | Christoph Hellwig <hch@lst.de> | 2021-11-29 11:22:02 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-12-04 08:58:54 -0800 |
commit | ca72d2210fc5b7a6bc7de1da0f9e1b84f8ee3602 (patch) | |
tree | 06bd4f04cc41f616cae8a67f7697a4605885fc4e /fs/iomap | |
parent | 2ede892342b3c628991ff1b9060108a7edd92d94 (diff) | |
download | lwn-ca72d2210fc5b7a6bc7de1da0f9e1b84f8ee3602.tar.gz lwn-ca72d2210fc5b7a6bc7de1da0f9e1b84f8ee3602.zip |
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>
Diffstat (limited to 'fs/iomap')
-rw-r--r-- | fs/iomap/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/iomap/Makefile b/fs/iomap/Makefile index 4143a3ff89db..fc070184b7fa 100644 --- a/fs/iomap/Makefile +++ b/fs/iomap/Makefile @@ -9,9 +9,9 @@ ccflags-y += -I $(srctree)/$(src) # needed for trace events obj-$(CONFIG_FS_IOMAP) += iomap.o iomap-y += trace.o \ - buffered-io.o \ + iter.o +iomap-$(CONFIG_BLOCK) += buffered-io.o \ direct-io.o \ fiemap.o \ - iter.o \ seek.o iomap-$(CONFIG_SWAP) += swapfile.o |