OSDN Git Service

md: make bitmap file support optional
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2023 06:48:39 +0000 (08:48 +0200)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000 (00:13 -0700)
commita34d4ef82c3c4bd8bda817e9fb53ef37c5595ddd
tree19f0e7a3a90aadd603d603382a0a6fdb8a5cadd7
parentd7038f951828da19fa9aafddfa087b69032c9687
md: make bitmap file support optional

The support for write intent bitmaps in files on an external files in md
is a hot mess that abuses ->bmap to map file offsets into physical device
objects, and also abuses buffer_heads in a creative way.

Make this code optional so that MD can be built into future kernels
without buffer_head support, and so that we can eventually deprecate it.

Note this does not affect the internal bitmap support, which has none of
the problems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230615064840.629492-11-hch@lst.de
drivers/md/Kconfig
drivers/md/md-bitmap.c
drivers/md/md.c