diff options
author | Christoph Lameter <clameter@engr.sgi.com> | 2006-01-06 03:10:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:23 -0500 |
commit | 21abb1478a87e26f5fa71dbcb7cf4264272c2248 (patch) | |
tree | 01e9a76ec55975b509aa721ad7d9e9cce89d9c82 /include/linux/mempolicy.h | |
parent | 5da7ca86078964cbfe6c83efc1205904587706fe (diff) |
[PATCH] Remove old node based policy interface from mempolicy.c
mempolicy.c contains provisional interface for huge page allocation based on
node numbers. This is in use in SLES9 but was never used (AFAIK) in upstream
versions of Linux.
Huge page allocations now use zonelists to figure out where to allocate pages.
The use of zonelists allows us to find the closest hugepage which was the
consideration of the NUMA distance for huge page allocations.
Remove the obsolete functions.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@muc.de>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Cc: Adam Litke <agl@us.ibm.com>
Acked-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mempolicy.h')
-rw-r--r-- | include/linux/mempolicy.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 817db6427113..b972f985a3c5 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -110,14 +110,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) | |||
110 | #define mpol_set_vma_default(vma) ((vma)->vm_policy = NULL) | 110 | #define mpol_set_vma_default(vma) ((vma)->vm_policy = NULL) |
111 | 111 | ||
112 | /* | 112 | /* |
113 | * Hugetlb policy. i386 hugetlb so far works with node numbers | ||
114 | * instead of zone lists, so give it special interfaces for now. | ||
115 | */ | ||
116 | extern int mpol_first_node(struct vm_area_struct *vma, unsigned long addr); | ||
117 | extern int mpol_node_valid(int nid, struct vm_area_struct *vma, | ||
118 | unsigned long addr); | ||
119 | |||
120 | /* | ||
121 | * Tree of shared policies for a shared memory region. | 113 | * Tree of shared policies for a shared memory region. |
122 | * Maintain the policies in a pseudo mm that contains vmas. The vmas | 114 | * Maintain the policies in a pseudo mm that contains vmas. The vmas |
123 | * carry the policy. As a special twist the pseudo mm is indexed in pages, not | 115 | * carry the policy. As a special twist the pseudo mm is indexed in pages, not |
@@ -184,17 +176,6 @@ static inline struct mempolicy *mpol_copy(struct mempolicy *old) | |||
184 | return NULL; | 176 | return NULL; |
185 | } | 177 | } |
186 | 178 | ||
187 | static inline int mpol_first_node(struct vm_area_struct *vma, unsigned long a) | ||
188 | { | ||
189 | return numa_node_id(); | ||
190 | } | ||
191 | |||
192 | static inline int | ||
193 | mpol_node_valid(int nid, struct vm_area_struct *vma, unsigned long a) | ||
194 | { | ||
195 | return 1; | ||
196 | } | ||
197 | |||
198 | struct shared_policy {}; | 179 | struct shared_policy {}; |
199 | 180 | ||
200 | static inline int mpol_set_shared_policy(struct shared_policy *info, | 181 | static inline int mpol_set_shared_policy(struct shared_policy *info, |