diff options
author | Arjun Roy <[email protected]> | 2020-04-10 14:32:54 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-04-10 15:36:21 -0700 |
commit | 251a0ffeaeee2a900765d98d44880943dce1047d (patch) | |
tree | 4f47fbc173ea0996ba66842cc3efe979f97f40b0 /include/linux/mm.h | |
parent | 8efd6f5b1732c4ac88b4bb6908d481d95804fa1c (diff) |
mm: bring sparc pte_index() semantics inline with other platforms
pte_index() on platforms other than sparc return a numerical index. On
sparc, it returns a pte_t*. This presents an issue for
vm_insert_pages(), which relies on pte_index() to find the offset for a
pte within a pmd, for batched inserts.
This patch:
1. Modifies pte_index() for sparc to return a numerical index, like
other platforms,
2. Defines pte_entry() for sparc which returns a pte_t*
(as pte_index() used to),
3. Converts existing sparc callers for pte_index() to use pte_entry().
[[email protected]: remove pte_entry and just directly modified pte_offset_kernel instead]
Signed-off-by: Arjun Roy <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Mike Rapoport <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Soheil Hassas Yeganeh <[email protected]>
Cc: David Miller <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Arjun Roy <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/mm.h')
0 files changed, 0 insertions, 0 deletions