diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 15:59:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 15:59:59 -0500 |
commit | ccf18968b1bbc2fb117190a1984ac2a826dac228 (patch) | |
tree | 7bc8fbf5722aecf1e84fa50c31c657864cba1daa /include/linux/mempolicy.h | |
parent | e91c021c487110386a07facd0396e6c3b7cf9c1f (diff) | |
parent | d99cf9d679a520d67f81d805b7cb91c68e1847f0 (diff) |
Merge ../torvalds-2.6/
Diffstat (limited to 'include/linux/mempolicy.h')
-rw-r--r-- | include/linux/mempolicy.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 8b67cf837ca9..ed00b278cb93 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 |
@@ -156,6 +148,16 @@ extern void numa_default_policy(void); | |||
156 | extern void numa_policy_init(void); | 148 | extern void numa_policy_init(void); |
157 | 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); |
158 | extern struct mempolicy default_policy; | 150 | extern struct mempolicy default_policy; |
151 | extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, | ||
152 | unsigned long addr); | ||
153 | |||
154 | extern int policy_zone; | ||
155 | |||
156 | static inline void check_highest_zone(int k) | ||
157 | { | ||
158 | if (k > policy_zone) | ||
159 | policy_zone = k; | ||
160 | } | ||
159 | 161 | ||
160 | #else | 162 | #else |
161 | 163 | ||
@@ -182,17 +184,6 @@ static inline struct mempolicy *mpol_copy(struct mempolicy *old) | |||
182 | return NULL; | 184 | return NULL; |
183 | } | 185 | } |
184 | 186 | ||
185 | static inline int mpol_first_node(struct vm_area_struct *vma, unsigned long a) | ||
186 | { | ||
187 | return numa_node_id(); | ||
188 | } | ||
189 | |||
190 | static inline int | ||
191 | mpol_node_valid(int nid, struct vm_area_struct *vma, unsigned long a) | ||
192 | { | ||
193 | return 1; | ||
194 | } | ||
195 | |||
196 | struct shared_policy {}; | 187 | struct shared_policy {}; |
197 | 188 | ||
198 | static inline int mpol_set_shared_policy(struct shared_policy *info, | 189 | static inline int mpol_set_shared_policy(struct shared_policy *info, |
@@ -232,6 +223,15 @@ static inline void numa_policy_rebind(const nodemask_t *old, | |||
232 | { | 223 | { |
233 | } | 224 | } |
234 | 225 | ||
226 | static inline struct zonelist *huge_zonelist(struct vm_area_struct *vma, | ||
227 | unsigned long addr) | ||
228 | { | ||
229 | return NODE_DATA(0)->node_zonelists + gfp_zone(GFP_HIGHUSER); | ||
230 | } | ||
231 | |||
232 | static inline void check_highest_zone(int k) | ||
233 | { | ||
234 | } | ||
235 | #endif /* CONFIG_NUMA */ | 235 | #endif /* CONFIG_NUMA */ |
236 | #endif /* __KERNEL__ */ | 236 | #endif /* __KERNEL__ */ |
237 | 237 | ||