kernel-hacking-2024-linux-s.../arch/um
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
..
configs
drivers Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-01-12 17:11:47 -08:00
include um: asm/page.h: remove the pte_high member from struct pte_t 2016-02-05 18:10:40 -08:00
kernel mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
os-Linux um: Use race-free temporary file creation 2016-01-10 21:49:50 +01:00
scripts
.gitignore
Kconfig.char
Kconfig.common um: Add seccomp support 2016-01-10 21:49:49 +01:00
Kconfig.debug
Kconfig.net
Kconfig.rest
Kconfig.um um: Add seccomp support 2016-01-10 21:49:49 +01:00
Makefile arch: um: fix error when linking vmlinux. 2015-12-08 22:25:13 +01:00
Makefile-os-Linux
Makefile-skas