]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/mm: Replace open-coded gap bounding with clamp()
authorQasim Ijaz <qasdev00@gmail.com>
Sat, 15 Feb 2025 12:52:49 +0000 (12:52 +0000)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Feb 2025 14:33:57 +0000 (15:33 +0100)
commit282f395244df3663dc24e97a86087431c9192513
tree47710a4c94a0c8ced0918ed04fb99aa551e50799
parent81256a50aa0fddefbf4849db8cad9f70c5167c04
x86/mm: Replace open-coded gap bounding with clamp()

Rather than manually bounding gap between gap_min and gap_max,
use the well-known clamp() macro to make the code easier to read.

Signed-off-by: Qasim Ijaz <qasdev00@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250215125249.10729-1-qasdev00@gmail.com
arch/x86/mm/mmap.c