All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-vmalloc-remove-vm_vpages.patch added to -mm tree
@ 2015-11-19 19:57 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2015-11-19 19:57 UTC (permalink / raw)
  To: rientjes, penguin-kernel, mm-commits


The patch titled
     Subject: mm, vmalloc: remove VM_VPAGES
has been added to the -mm tree.  Its filename is
     mm-vmalloc-remove-vm_vpages.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-vmalloc-remove-vm_vpages.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-vmalloc-remove-vm_vpages.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: David Rientjes <rientjes@google.com>
Subject: mm, vmalloc: remove VM_VPAGES

VM_VPAGES is unnecessary, it's easier to check is_vmalloc_addr() when
reading /proc/vmallocinfo.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/vmalloc.h |    1 -
 mm/vmalloc.c            |    3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff -puN include/linux/vmalloc.h~mm-vmalloc-remove-vm_vpages include/linux/vmalloc.h
--- a/include/linux/vmalloc.h~mm-vmalloc-remove-vm_vpages
+++ a/include/linux/vmalloc.h
@@ -14,7 +14,6 @@ struct vm_area_struct;		/* vma defining
 #define VM_ALLOC		0x00000002	/* vmalloc() */
 #define VM_MAP			0x00000004	/* vmap()ed pages */
 #define VM_USERMAP		0x00000008	/* suitable for remap_vmalloc_range */
-#define VM_VPAGES		0x00000010	/* buffer for pages was vmalloc'ed */
 #define VM_UNINITIALIZED	0x00000020	/* vm_struct is not fully initialized */
 #define VM_NO_GUARD		0x00000040      /* don't add guard page */
 #define VM_KASAN		0x00000080      /* has allocated kasan shadow memory */
diff -puN mm/vmalloc.c~mm-vmalloc-remove-vm_vpages mm/vmalloc.c
--- a/mm/vmalloc.c~mm-vmalloc-remove-vm_vpages
+++ a/mm/vmalloc.c
@@ -1589,7 +1589,6 @@ static void *__vmalloc_area_node(struct
 	if (array_size > PAGE_SIZE) {
 		pages = __vmalloc_node(array_size, 1, nested_gfp|__GFP_HIGHMEM,
 				PAGE_KERNEL, node, area->caller);
-		area->flags |= VM_VPAGES;
 	} else {
 		pages = kmalloc_node(array_size, nested_gfp, node);
 	}
@@ -2647,7 +2646,7 @@ static int s_show(struct seq_file *m, vo
 	if (v->flags & VM_USERMAP)
 		seq_puts(m, " user");
 
-	if (v->flags & VM_VPAGES)
+	if (is_vmalloc_addr(v->pages))
 		seq_puts(m, " vpages");
 
 	show_numa_info(m, v);
_

Patches currently in -mm which might be from rientjes@google.com are

mm-vmalloc-remove-vm_vpages.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-19 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 19:57 + mm-vmalloc-remove-vm_vpages.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.