]> www.infradead.org Git - users/hch/misc.git/commit
block: remove the bi_inline_vecs variable sized array from struct bio remove-bi_inline_vecs
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Sep 2025 03:29:35 +0000 (05:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Sep 2025 03:34:23 +0000 (05:34 +0200)
commit1c7b309f8971d8303c236cca876193875db8af78
tree288ba2eb2c32dd86c41d18ff9df36c8bdf253b08
parentd78a116c41f7afbb192a6ce45565d0ebc1ae5f9c
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 (and only one outside the usual suspects) doing
anything special with it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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