diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-24 19:10:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-24 19:10:23 -0400 |
commit | 9c9fa97a8edbc3668dfc7a25de516e80c146e86f (patch) | |
tree | 2dc0e90203796a4b346ce190f9521c3294104058 /include/asm-generic/pgtable.h | |
parent | 5184d449600f501a8688069f35c138c6b3bf8b94 (diff) | |
parent | 2b38d01b4de8b1bbda7f5f7e91252609557635fc (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge updates from Andrew Morton:
- a few hot fixes
- ocfs2 updates
- almost all of -mm (slab-generic, slab, slub, kmemleak, kasan,
cleanups, debug, pagecache, memcg, gup, pagemap, memory-hotplug,
sparsemem, vmalloc, initialization, z3fold, compaction, mempolicy,
oom-kill, hugetlb, migration, thp, mmap, madvise, shmem, zswap,
zsmalloc)
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (132 commits)
mm/zsmalloc.c: fix a -Wunused-function warning
zswap: do not map same object twice
zswap: use movable memory if zpool support allocate movable memory
zpool: add malloc_support_movable to zpool_driver
shmem: fix obsolete comment in shmem_getpage_gfp()
mm/madvise: reduce code duplication in error handling paths
mm: mmap: increase sockets maximum memory size pgoff for 32bits
mm/mmap.c: refine find_vma_prev() with rb_last()
riscv: make mmap allocation top-down by default
mips: use generic mmap top-down layout and brk randomization
mips: replace arch specific way to determine 32bit task with generic version
mips: adjust brk randomization offset to fit generic version
mips: use STACK_TOP when computing mmap base address
mips: properly account for stack randomization and stack guard gap
arm: use generic mmap top-down layout and brk randomization
arm: use STACK_TOP when computing mmap base address
arm: properly account for stack randomization and stack guard gap
arm64, mm: make randomization selected by generic topdown mmap layout
arm64, mm: move generic mmap layout functions to mm
arm64: consider stack randomization for mmap base only when necessary
...
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r-- | include/asm-generic/pgtable.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index 75d9d68a6de7..818691846c90 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
@@ -1002,9 +1002,8 @@ static inline int pmd_none_or_trans_huge_or_clear_bad(pmd_t *pmd) | |||
1002 | * need this). If THP is not enabled, the pmd can't go away under the | 1002 | * need this). If THP is not enabled, the pmd can't go away under the |
1003 | * code even if MADV_DONTNEED runs, but if THP is enabled we need to | 1003 | * code even if MADV_DONTNEED runs, but if THP is enabled we need to |
1004 | * run a pmd_trans_unstable before walking the ptes after | 1004 | * run a pmd_trans_unstable before walking the ptes after |
1005 | * split_huge_page_pmd returns (because it may have run when the pmd | 1005 | * split_huge_pmd returns (because it may have run when the pmd become |
1006 | * become null, but then a page fault can map in a THP and not a | 1006 | * null, but then a page fault can map in a THP and not a regular page). |
1007 | * regular page). | ||
1008 | */ | 1007 | */ |
1009 | static inline int pmd_trans_unstable(pmd_t *pmd) | 1008 | static inline int pmd_trans_unstable(pmd_t *pmd) |
1010 | { | 1009 | { |
@@ -1126,7 +1125,7 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, | |||
1126 | static inline void init_espfix_bsp(void) { } | 1125 | static inline void init_espfix_bsp(void) { } |
1127 | #endif | 1126 | #endif |
1128 | 1127 | ||
1129 | extern void __init pgd_cache_init(void); | 1128 | extern void __init pgtable_cache_init(void); |
1130 | 1129 | ||
1131 | #ifndef __HAVE_ARCH_PFN_MODIFY_ALLOWED | 1130 | #ifndef __HAVE_ARCH_PFN_MODIFY_ALLOWED |
1132 | static inline bool pfn_modify_allowed(unsigned long pfn, pgprot_t prot) | 1131 | static inline bool pfn_modify_allowed(unsigned long pfn, pgprot_t prot) |