]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/mm: Simplify the pgd_leaf() and p4d_leaf() checks a bit
authorBaoquan He <bhe@redhat.com>
Mon, 31 Mar 2025 08:13:25 +0000 (16:13 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 20:48:56 +0000 (22:48 +0200)
commit2b00d9031e42eabc8d32847d231ef48b8be0373d
treef453d5bb8217b42544c98f9bc441d3e88e88fc71
parentc083eff324edd73eb23f4bd3f40f388a3e7c2cd2
x86/mm: Simplify the pgd_leaf() and p4d_leaf() checks a bit

The functions return bool, simplify the checks.

[ mingo: Split off from two other patches. ]

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250331081327.256412-6-bhe@redhat.com
arch/x86/mm/pti.c