ext4: fix traditional comparison using max/min method
authorLu Hongfei <luhongfei@vivo.com>
Mon, 29 May 2023 07:09:30 +0000 (15:09 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Oct 2023 01:48:02 +0000 (21:48 -0400)
commita8c1eb77edfc92a64788dad70fedf9277cbafe76
tree561b4a868a84945041490124d209d2d6731bc69d
parent745f17a4166e79315e4b7f33ce89d03e75a76983
ext4: fix traditional comparison using max/min method

It would be better to replace the traditional ternary conditional
operator with max()/min()

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Reviewed-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230529070930.37949-1-luhongfei@vivo.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/balloc.c