mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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) [[email protected]: coding-style fixes] Signed-off-by: Benjamin Herrenschmidt <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5955c7a2cf
commit
c296861291
2 changed files with 12 additions and 0 deletions
|
|
@ -1106,6 +1106,14 @@ struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(__get_vm_area);
|
||||
|
||||
struct vm_struct *__get_vm_area_caller(unsigned long size, unsigned long flags,
|
||||
unsigned long start, unsigned long end,
|
||||
void *caller)
|
||||
{
|
||||
return __get_vm_area_node(size, flags, start, end, -1, GFP_KERNEL,
|
||||
caller);
|
||||
}
|
||||
|
||||
/**
|
||||
* get_vm_area - reserve a contiguous kernel virtual area
|
||||
* @size: size of the area
|
||||
|
|
|
|||
Loading…
Reference in a new issue