Re: [PATCH] bcachefs: Prefer struct_size over open coded arithmetic

From: Kent Overstreet
Date: Sat Feb 24 2024 - 19:52:38 EST


On Sat, Feb 24, 2024 at 04:16:58PM +0100, Erick Archer wrote:
> This is an effort to get rid of all multiplications from allocation
> functions in order to prevent integer overflows [1][2].
>
> As the "t" variable is a pointer to "struct journal_seq_blacklist_table"
> and this structure ends in a flexible array:

there's no reason to break these out into multiple patches, just send me
a single patch when you're done - thanks!