Re: [PATCH] block: stack max_user_discard_sectors

From: Christoph Hellwig

Date: Fri Nov 20 2026 - 10:40:57 EST


On Mon, Nov 09, 2026 at 02:39:27PM -0500, Benjamin Marzinski wrote:
> t->max_discard_sectors = min_not_zero(t->max_discard_sectors,
> b->max_discard_sectors);
> + t->max_user_discard_sectors = min_not_zero(t->max_user_discard_sectors,
> + b->max_user_discard_sectors);

I don't think we should take the underlying max_user_discard_sectors
into account here, just max_discard_sectors. But otherwise yes, this
should be stacked.

Please avoid the overly long lines, though.