mm/vma: make is_vma_temporary_stack() available for general use
Currently the declaration and definition for is_vma_temporary_stack() are scattered. Lets make is_vma_temporary_stack() helper available for general use and also drop the declaration from (include/linux/huge_mm.h) which is no longer required. While at this, rename this as vma_is_temporary_stack() in line with existing helpers. 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: Ingo Molnar <mingo@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Paul Mackerras <paulus@samba.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1582782965-3274-4-git-send-email-anshuman.khandual@arm.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7969f2264f
commit
222100eed2
5 changed files with 18 additions and 20 deletions
|
|
@ -133,7 +133,7 @@ static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd,
|
|||
* such races:
|
||||
*
|
||||
* - During exec() shift_arg_pages(), we use a specially tagged vma
|
||||
* which rmap call sites look for using is_vma_temporary_stack().
|
||||
* which rmap call sites look for using vma_is_temporary_stack().
|
||||
*
|
||||
* - During mremap(), new_vma is often known to be placed after vma
|
||||
* in rmap traversal order. This ensures rmap will always observe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue