diff options
author | David Rientjes <rientjes@google.com> | 2008-04-28 05:12:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:20 -0400 |
commit | 3842b46de626d1a3c44ad280d67ab0a4dc047d13 (patch) | |
tree | b3ed5977e3fa16300fb285aa7212fe2597aed9d0 /include/linux/mempolicy.h | |
parent | 37012946da940521fb997a758a219d2f1ab56e51 (diff) |
mempolicy: small header file cleanup
Removes forward definition of vm_area_struct in linux/mempolicy.h. We already
get it from the linux/slab.h -> linux/gfp.h include.
Removes the unused mpol_set_vma_default() macro from linux/mempolicy.h.
Removes the extern definition of default_policy since it is only referenced,
as it should be, in mm/mempolicy.c.
Cc: Paul Jackson <pj@sgi.com>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: David Rientjes <rientjes@google.com>
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 | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 02b11efd7066..319fd342b1b7 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -52,7 +52,6 @@ enum { | |||
52 | #include <linux/spinlock.h> | 52 | #include <linux/spinlock.h> |
53 | #include <linux/nodemask.h> | 53 | #include <linux/nodemask.h> |
54 | 54 | ||
55 | struct vm_area_struct; | ||
56 | struct mm_struct; | 55 | struct mm_struct; |
57 | 56 | ||
58 | #ifdef CONFIG_NUMA | 57 | #ifdef CONFIG_NUMA |
@@ -131,10 +130,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) | |||
131 | return __mpol_equal(a, b); | 130 | return __mpol_equal(a, b); |
132 | } | 131 | } |
133 | 132 | ||
134 | /* Could later add inheritance of the process policy here. */ | ||
135 | |||
136 | #define mpol_set_vma_default(vma) ((vma)->vm_policy = NULL) | ||
137 | |||
138 | /* | 133 | /* |
139 | * Tree of shared policies for a shared memory region. | 134 | * Tree of shared policies for a shared memory region. |
140 | * Maintain the policies in a pseudo mm that contains vmas. The vmas | 135 | * Maintain the policies in a pseudo mm that contains vmas. The vmas |
@@ -170,7 +165,6 @@ extern void mpol_rebind_task(struct task_struct *tsk, | |||
170 | extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new); | 165 | extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new); |
171 | extern void mpol_fix_fork_child_flag(struct task_struct *p); | 166 | extern void mpol_fix_fork_child_flag(struct task_struct *p); |
172 | 167 | ||
173 | extern struct mempolicy default_policy; | ||
174 | extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, | 168 | extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, |
175 | unsigned long addr, gfp_t gfp_flags, | 169 | unsigned long addr, gfp_t gfp_flags, |
176 | struct mempolicy **mpol, nodemask_t **nodemask); | 170 | struct mempolicy **mpol, nodemask_t **nodemask); |
@@ -196,8 +190,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) | |||
196 | return 1; | 190 | return 1; |
197 | } | 191 | } |
198 | 192 | ||
199 | #define mpol_set_vma_default(vma) do {} while(0) | ||
200 | |||
201 | static inline void mpol_free(struct mempolicy *p) | 193 | static inline void mpol_free(struct mempolicy *p) |
202 | { | 194 | { |
203 | } | 195 | } |