vmalloc: add __get_vm_area_caller()

Previous thread: Add support for VT6415 PCIE PATA IDE Host Controller by Linux Kernel Mailing List on Tuesday, February 17, 2009 - 5:59 pm. (1 message)

Next thread: aoe: ignore vendor extension AoE responses by Linux Kernel Mailing List on Wednesday, February 18, 2009 - 6:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Wednesday, February 18, 2009 - 6:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c29686...
Commit:     c296861291669f305deef19b78042330d7135017
Parent:     5955c7a2cfb6a35429adea5dc480002b15ca8cfc
Author:     Benjamin Herrenschmidt <benh@kernel.crashing.org>
AuthorDate: Wed Feb 18 14:48:12 2009 -0800
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Wed Feb 18 15:37:53 2009 -0800

    vmalloc: add __get_vm_area_caller()
    
    We have get_vm_area_caller() and __get_vm_area() but not
    __get_vm_area_caller()
    
    On powerpc, I use __get_vm_area() to separate the ranges of addresses
    given to vmalloc vs.  ioremap (various good reasons for that) so in order
    to be able to implement the new caller tracking in /proc/vmallocinfo, I
    need a "_caller" variant of it.
    
    (akpm: needed for ongoing powerpc development, so merge it early)
    
    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 include/linux/vmalloc.h |    4 ++++
 mm/vmalloc.c            |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 506e762..9c0890c 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -84,6 +84,10 @@ extern struct vm_struct *get_vm_area_caller(unsigned long size,
 					unsigned long flags, void *caller);
 extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags,
 					unsigned long start, unsigned long end);
+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 ...
Previous thread: Add support for VT6415 PCIE PATA IDE Host Controller by Linux Kernel Mailing List on Tuesday, February 17, 2009 - 5:59 pm. (1 message)

Next thread: aoe: ignore vendor extension AoE responses by Linux Kernel Mailing List on Wednesday, February 18, 2009 - 6:59 pm. (1 message)