linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/3] mm: remove unused get_vm_area_node
@ 2010-11-17  3:41 David Rientjes
  2010-11-17  3:41 ` [patch 2/3] mm: remove gfp mask from pcpu_get_vm_areas David Rientjes
  2010-11-17  3:41 ` [patch 3/3] mm: unify module_alloc code for vmalloc David Rientjes
  0 siblings, 2 replies; 6+ messages in thread
From: David Rientjes @ 2010-11-17  3:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Christoph Lameter, linux-mm

get_vm_area_node() is unused in the kernel and can thus be removed.

Signed-off-by: David Rientjes <rientjes@google.com>
---
 include/linux/vmalloc.h |    3 ---
 mm/vmalloc.c            |    7 -------
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -92,9 +92,6 @@ extern struct vm_struct *__get_vm_area_caller(unsigned long size,
 					unsigned long flags,
 					unsigned long start, unsigned long end,
 					void *caller);
-extern struct vm_struct *get_vm_area_node(unsigned long size,
-					  unsigned long flags, int node,
-					  gfp_t gfp_mask);
 extern struct vm_struct *remove_vm_area(const void *addr);
 
 extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1309,13 +1309,6 @@ struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,
 						-1, GFP_KERNEL, caller);
 }
 
-struct vm_struct *get_vm_area_node(unsigned long size, unsigned long flags,
-				   int node, gfp_t gfp_mask)
-{
-	return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END,
-				  node, gfp_mask, __builtin_return_address(0));
-}
-
 static struct vm_struct *find_vm_area(const void *addr)
 {
 	struct vmap_area *va;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-18  6:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17  3:41 [patch 1/3] mm: remove unused get_vm_area_node David Rientjes
2010-11-17  3:41 ` [patch 2/3] mm: remove gfp mask from pcpu_get_vm_areas David Rientjes
2010-11-17  9:08   ` Tejun Heo
2010-11-17 20:32     ` David Rientjes
2010-11-18  6:29       ` Tejun Heo
2010-11-17  3:41 ` [patch 3/3] mm: unify module_alloc code for vmalloc David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).