ext4: replace the traditional ternary conditional operator with with max()/min()
authorKemeng Shi <shikemeng@huaweicloud.com>
Tue, 1 Aug 2023 14:32:00 +0000 (22:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:32 +0000 (14:56 +0200)
commit1e3c25df7d403a5980262840821ed256f112c804
tree741e429fb1699e332ad2be72c50b23059ad44dda
parent39c4a9522db0072570d602e9b365119e17fb9f4f
ext4: replace the traditional ternary conditional operator with with max()/min()

[ Upstream commit de8bf0e5ee7482585450357c6d4eddec8efc5cb7 ]

Replace the traditional ternary conditional operator with with max()/min()

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20230801143204.2284343-7-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Stable-dep-of: 45e4ab320c9b ("ext4: move setting of trimmed bit into ext4_try_to_trim_range()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/mballoc.c