]> www.infradead.org Git - users/hch/block.git/commit
fs: add CONFIG_BUFFER_HEAD make-buffer_heads-optional
authorChristoph Hellwig <hch@lst.de>
Sat, 22 Apr 2023 09:33:07 +0000 (11:33 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 22 Apr 2023 13:19:30 +0000 (15:19 +0200)
commiteaf2d819fe6b5701a4c373d52d31a5fd93316bad
treeb7d73b346cd425e76a408a46625b0de7f23a1ae5
parent5e0d1cd62a524368945cb1623b1790c366b9dd07
fs: add CONFIG_BUFFER_HEAD

Add a new config option that controls building the buffer_head code, and
select it from all file systems and stacking drivers that need it.

For the block device nodes and alternative iomap based buffered I/O path
is provided when buffer_head support is not enabled, and iomap needs a
little tweak to be able to compile out the buffer_head based code path.

Otherwise this is just Kconfig and ifdef changes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
37 files changed:
block/fops.c
drivers/md/Kconfig
fs/Kconfig
fs/Makefile
fs/adfs/Kconfig
fs/affs/Kconfig
fs/befs/Kconfig
fs/bfs/Kconfig
fs/efs/Kconfig
fs/exfat/Kconfig
fs/ext2/Kconfig
fs/ext4/Kconfig
fs/f2fs/Kconfig
fs/fat/Kconfig
fs/freevxfs/Kconfig
fs/gfs2/Kconfig
fs/hfs/Kconfig
fs/hfsplus/Kconfig
fs/hpfs/Kconfig
fs/iomap/buffered-io.c
fs/isofs/Kconfig
fs/jfs/Kconfig
fs/minix/Kconfig
fs/nilfs2/Kconfig
fs/ntfs/Kconfig
fs/ntfs3/Kconfig
fs/ocfs2/Kconfig
fs/omfs/Kconfig
fs/qnx4/Kconfig
fs/qnx6/Kconfig
fs/reiserfs/Kconfig
fs/sysv/Kconfig
fs/udf/Kconfig
fs/ufs/Kconfig
include/linux/buffer_head.h
include/trace/events/block.h
mm/migrate.c