mm/memory.c: use helper macro min and max in unmap_mapping_range_tree()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:42:33 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:05 +0000 (15:57 -0700)
commitf9871da927437dc85bc3fec206fc9bfddea4a34b
tree959ab0a659abc0c1cbe744b69a6051d3ff5dc163
parent88a359125a2b8f2437f09ab3b1af4815c89690d4
mm/memory.c: use helper macro min and max in unmap_mapping_range_tree()

Use helper macro min and max to help simplify the code logic.  Minor
readability improvement.

Link: https://lkml.kernel.org/r/20220224121134.35068-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c