diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-11-26 17:20:28 +0100 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2022-12-15 10:37:27 -0800 |
commit | dab6e717429e5ec795d558a0e9a5337a1ed33a3d (patch) | |
tree | ccf185608228f52912f57bd4f4d49b2fa066fb76 /mm/mprotect.c | |
parent | 6ca297d4784625de7b041e8451780643cf5751a4 (diff) | |
download | lwn-dab6e717429e5ec795d558a0e9a5337a1ed33a3d.tar.gz lwn-dab6e717429e5ec795d558a0e9a5337a1ed33a3d.zip |
mm: Rename pmd_read_atomic()
There's no point in having the identical routines for PTE/PMD have
different names.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221022114424.841277397%40infradead.org
Diffstat (limited to 'mm/mprotect.c')
-rw-r--r-- | mm/mprotect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c index 668bfaa6ed2a..f006bafe338f 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -294,7 +294,7 @@ static unsigned long change_pte_range(struct mmu_gather *tlb, */ static inline int pmd_none_or_clear_bad_unless_trans_huge(pmd_t *pmd) { - pmd_t pmdval = pmd_read_atomic(pmd); + pmd_t pmdval = pmdp_get_lockless(pmd); /* See pmd_none_or_trans_huge_or_clear_bad for info on barrier */ #ifdef CONFIG_TRANSPARENT_HUGEPAGE |