Skip to content

Commit a2f7a0b

Browse files
Wei YangIngo Molnar
authored andcommitted
x86/mm: Fix function name typo in pmd_read_atomic() comment
The function involved should be pte_offset_map_lock() and we never have function pmd_offset_map_lock defined. Signed-off-by: Wei Yang <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected] [ Minor edits. ] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 77df779 commit a2f7a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/include/asm/pgtable-3level.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ static inline void native_set_pte(pte_t *ptep, pte_t pte)
4444
* pmd_populate rightfully does a set_64bit, but if we're reading the
4545
* pmd_t with a "*pmdp" on the mincore side, a SMP race can happen
4646
* because gcc will not read the 64bit of the pmd atomically. To fix
47-
* this all places running pmd_offset_map_lock() while holding the
47+
* this all places running pte_offset_map_lock() while holding the
4848
* mmap_sem in read mode, shall read the pmdp pointer using this
4949
* function to know if the pmd is null nor not, and in turn to know if
50-
* they can run pmd_offset_map_lock or pmd_trans_huge or other pmd
50+
* they can run pte_offset_map_lock() or pmd_trans_huge() or other pmd
5151
* operations.
5252
*
5353
* Without THP if the mmap_sem is hold for reading, the pmd can only

0 commit comments

Comments
 (0)