diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-05-24 20:12:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:32 -0400 |
commit | d98f6cb67fb5b9376d4957d7ba9f32eac35c2e08 (patch) | |
tree | e7fbb12bde5e30154403bf4e8cabf0bcf817aa65 /include/linux/mempolicy.h | |
parent | c856507f2b2b47a49d8587afb58930b463f6bff4 (diff) |
mm: export get_vma_policy()
In commit 48fce3429d ("mempolicies: unexport get_vma_policy()")
get_vma_policy() was marked static as all clients were local to
mempolicy.c.
However, the decision to generate /proc/pid/numa_maps in the numa memory
policy code and outside the procfs subsystem introduces an artificial
interdependency between the two systems. Exporting get_vma_policy() once
again is the first step to clean up this interdependency.
Signed-off-by: Stephen Wilson <wilsons@start.ca>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mempolicy.h')
-rw-r--r-- | include/linux/mempolicy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 31ac26ca4acf..c2f603218fbc 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -199,6 +199,9 @@ void mpol_free_shared_policy(struct shared_policy *p); | |||
199 | struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, | 199 | struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, |
200 | unsigned long idx); | 200 | unsigned long idx); |
201 | 201 | ||
202 | struct mempolicy *get_vma_policy(struct task_struct *tsk, | ||
203 | struct vm_area_struct *vma, unsigned long addr); | ||
204 | |||
202 | extern void numa_default_policy(void); | 205 | extern void numa_default_policy(void); |
203 | extern void numa_policy_init(void); | 206 | extern void numa_policy_init(void); |
204 | extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new, | 207 | extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new, |