1
0
Fork 0
alistair23-linux/arch
Kirill A. Shutemov 3ed3a4f0dd mm: cleanup *pte_alloc* interfaces
There are few things about *pte_alloc*() helpers worth cleaning up:

 - 'vma' argument is unused, let's drop it;

 - most __pte_alloc() callers do speculative check for pmd_none(),
   before taking ptl: let's introduce pte_alloc() macro which does
   the check.

   The only direct user of __pte_alloc left is userfaultfd, which has
   different expectation about atomicity wrt pmd.

 - pte_alloc_map() and pte_alloc_map_lock() are redefined using
   pte_alloc().

[sudeep.holla@arm.com: fix build for arm64 hugetlbpage]
[sfr@canb.auug.org.au: fix arch/arm/mm/mmu.c some more]
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-03-17 15:09:34 -07:00
..
alpha PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
arc ARC, thp: remove infrastructure for handling splitting PMDs 2016-03-17 15:09:34 -07:00
arm mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
arm64 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
avr32 PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
blackfin PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
c6x locking/lockdep: Eliminate lockdep_init() 2016-02-09 12:03:25 +01:00
cris PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
frv PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
h8300 Merge branch 'akpm' (patches from Andrew) 2016-01-21 12:32:08 -08:00
hexagon arch/hotplug: Call into idle with a proper state 2016-03-01 20:36:57 +01:00
ia64 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
m32r PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
m68k PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
metag mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
microblaze PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
mips PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
mn10300 PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
nios2 dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
openrisc dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
parisc mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
powerpc powerpc: query dynamic DEBUG_PAGEALLOC setting 2016-03-17 15:09:34 -07:00
s390 PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
score arch: Set IORESOURCE_SYSTEM_RAM flag for System RAM 2016-01-30 09:49:57 +01:00
sh mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
sparc mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
tile mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
um mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
unicore32 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
x86 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
xtensa PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
.gitignore
Kconfig dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00