btrfs: select FS_IOMAP
diff mbox series

Message ID 20200528091649.2874627-1-arnd@arndb.de
State New
Headers show
Series
  • btrfs: select FS_IOMAP
Related show

Commit Message

Arnd Bergmann May 28, 2020, 9:16 a.m. UTC
As btrfs now calls iomap_dio_rw, the helper code actually has
to be enabled to avoid a link error:

ERROR: modpost: "iomap_dio_rw" [fs/btrfs/btrfs.ko] undefined!

Fixes: f31e5f70919f ("btrfs: switch to iomap_dio_rw() for dio")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 fs/btrfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Johannes Thumshirn May 28, 2020, 9:18 a.m. UTC | #1
Right,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
David Sterba May 28, 2020, 12:05 p.m. UTC | #2
On Thu, May 28, 2020 at 11:16:42AM +0200, Arnd Bergmann wrote:
> As btrfs now calls iomap_dio_rw, the helper code actually has
> to be enabled to avoid a link error:
> 
> ERROR: modpost: "iomap_dio_rw" [fs/btrfs/btrfs.ko] undefined!
> 
> Fixes: f31e5f70919f ("btrfs: switch to iomap_dio_rw() for dio")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Thanks, I've folded the patch in so we don't get build breakage in the
patches between the two.

Patch
diff mbox series

diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig
index 575636f6491e..68b95ad82126 100644
--- a/fs/btrfs/Kconfig
+++ b/fs/btrfs/Kconfig
@@ -14,6 +14,7 @@  config BTRFS_FS
 	select LZO_DECOMPRESS
 	select ZSTD_COMPRESS
 	select ZSTD_DECOMPRESS
+	select FS_IOMAP
 	select RAID6_PQ
 	select XOR_BLOCKS
 	select SRCU