Re: [PATCH] ext4: replace min/max nesting with clamp()
From: Theodore Ts'o
Date: Fri Sep 26 2025 - 17:48:05 EST
On Mon, 18 Aug 2025 15:28:59 +0800, Xichao Zhao wrote:
> The clamp() macro explicitly expresses the intent of constraining a value
> within bounds.Therefore, replacing max(min(a,b),c) with clamp(val, lo, hi)
> can improve code readability.
>
>
Applied, thanks!
[1/1] ext4: replace min/max nesting with clamp()
commit: 981b696faf2d59a58d1dc8e258bba00b12e5de93
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>