diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-01-08 04:01:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:12:44 -0500 |
commit | 48fce3429df84a94766fbbc845fa8450d0715b48 (patch) | |
tree | 4458b95a0ef8a1896049415a0e3fc8a0e89d340a | |
parent | 132beacf9785d2e6e8aecb59aa078f3ca5668fa6 (diff) |
[PATCH] mempolicies: unexport get_vma_policy()
Since the numa_maps functionality is now in mempolicy.c we no longer need to
export get_vma_policy().
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/mempolicy.h | 3 | ||||
-rw-r--r-- | mm/mempolicy.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 66247eff24a0..05fddd5bee5d 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -144,9 +144,6 @@ void mpol_free_shared_policy(struct shared_policy *p); | |||
144 | struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, | 144 | struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, |
145 | unsigned long idx); | 145 | unsigned long idx); |
146 | 146 | ||
147 | struct mempolicy *get_vma_policy(struct task_struct *task, | ||
148 | struct vm_area_struct *vma, unsigned long addr); | ||
149 | |||
150 | extern void numa_default_policy(void); | 147 | extern void numa_default_policy(void); |
151 | extern void numa_policy_init(void); | 148 | extern void numa_policy_init(void); |
152 | extern void numa_policy_rebind(const nodemask_t *old, const nodemask_t *new); | 149 | extern void numa_policy_rebind(const nodemask_t *old, const nodemask_t *new); |
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 4c0510e9e7f6..4b077ec6c005 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -935,8 +935,8 @@ asmlinkage long compat_sys_mbind(compat_ulong_t start, compat_ulong_t len, | |||
935 | #endif | 935 | #endif |
936 | 936 | ||
937 | /* Return effective policy for a VMA */ | 937 | /* Return effective policy for a VMA */ |
938 | struct mempolicy * | 938 | static struct mempolicy * get_vma_policy(struct task_struct *task, |
939 | get_vma_policy(struct task_struct *task, struct vm_area_struct *vma, unsigned long addr) | 939 | struct vm_area_struct *vma, unsigned long addr) |
940 | { | 940 | { |
941 | struct mempolicy *pol = task->mempolicy; | 941 | struct mempolicy *pol = task->mempolicy; |
942 | 942 | ||