[PATCH V2 0/3] mm/vma: some more minor changes

From: Anshuman Khandual
Date: Thu Feb 27 2020 - 00:56:24 EST


The motivation here is to consolidate VMA flags and helpers in generic
memory header and reduce code duplication when ever applicable. If there
are other possible similar instances which might be missing here, please
do let me me know. I will be happy to incorporate them.

This series is based on v5.6-rc3. This series has been build tested on
multiple platforms but boot tested only on arm64 and x86.

Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: x86@xxxxxxxxxx
Cc: linuxppc-dev@xxxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-mm@xxxxxxxxx

Changes in V2:

- Moved VM_NO_KHUGEPAGED after VM_SPECIAL with a comment per Vlastimil
- Renamed is_vma_temporary_stack() as vma_is_temporary_stack() per Vlastimil

Changes in V1: (https://patchwork.kernel.org/cover/11405177/)

Anshuman Khandual (3):
mm/vma: Move VM_NO_KHUGEPAGED into generic header
mm/vma: Make vma_is_foreign() available for general use
mm/vma: Make is_vma_temporary_stack() available for general use

arch/powerpc/mm/book3s64/pkeys.c | 12 ------------
arch/x86/include/asm/mmu_context.h | 15 ---------------
include/linux/huge_mm.h | 4 +---
include/linux/mm.h | 29 ++++++++++++++++++++++++++++-
mm/khugepaged.c | 4 +---
mm/mremap.c | 2 +-
mm/rmap.c | 16 +---------------
7 files changed, 32 insertions(+), 50 deletions(-)

--
2.20.1