block: remove the bi_inline_vecs variable sized array from struct bio
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Sep 2025 10:56:39 +0000 (12:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Sep 2025 13:31:59 +0000 (07:31 -0600)
commitd86eaa0f3c56da286853b698b45c8ce404291082
tree16ad9585e0995775a3930713066eac098e5c5fe9
parent70a6f71b1a77decfc5b1db426ccbe914b58adb38
block: remove the bi_inline_vecs variable sized array from struct bio

Bios are embedded into other structures, and at least spare is unhappy
about embedding structures with variable sized arrays.  There's no
real need to the array anyway, we can replace it with a helper pointing
to the memory just behind the bio, and with the previous cleanups there
is very few site doing anything special with it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/writeback.c
drivers/md/dm-vdo/vio.c
fs/bcachefs/data_update.h
fs/bcachefs/journal.c
include/linux/bio.h
include/linux/blk_types.h