Commit 981b696f authored by Xichao Zhao's avatar Xichao Zhao Committed by Theodore Ts'o
Browse files

ext4: replace min/max nesting with clamp()



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.

Signed-off-by: default avatarXichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 1534f72d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment