]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vma: make vma_is_foreign() available for general use
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 2 Apr 2020 04:07:49 +0000 (21:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:29 +0000 (09:35 -0700)
commit7c886af4a4530dca1c88065bb3c94d2fa9525271
treeaebb03aa114e62b8457041668553a9d48ac103a2
parentcab9e564934321653c081c67f01b7c8b2f318cee
mm/vma: make vma_is_foreign() available for general use

Idea of a foreign VMA with respect to the present context is very generic.
But currently there are two identical definitions for this in powerpc and
x86 platforms.  Lets consolidate those redundant definitions while making
vma_is_foreign() available for general use later.  This should not cause
any functional change.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Link: http://lkml.kernel.org/r/1582782965-3274-3-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/mm/book3s64/pkeys.c
arch/x86/include/asm/mmu_context.h
include/linux/mm.h