diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mempolicy.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 74357cb9bc7c..c7ac77e873b3 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -150,6 +150,16 @@ extern void numa_policy_init(void); | |||
150 | extern void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *new); | 150 | extern void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *new); |
151 | extern void mpol_rebind_task(struct task_struct *tsk, | 151 | extern void mpol_rebind_task(struct task_struct *tsk, |
152 | const nodemask_t *new); | 152 | const nodemask_t *new); |
153 | extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new); | ||
154 | #define set_cpuset_being_rebound(x) (cpuset_being_rebound = (x)) | ||
155 | |||
156 | #ifdef CONFIG_CPUSET | ||
157 | #define current_cpuset_is_being_rebound() \ | ||
158 | (cpuset_being_rebound == current->cpuset) | ||
159 | #else | ||
160 | #define current_cpuset_is_being_rebound() 0 | ||
161 | #endif | ||
162 | |||
153 | extern struct mempolicy default_policy; | 163 | extern struct mempolicy default_policy; |
154 | extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, | 164 | extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, |
155 | unsigned long addr); | 165 | unsigned long addr); |
@@ -165,6 +175,8 @@ static inline void check_highest_zone(int k) | |||
165 | int do_migrate_pages(struct mm_struct *mm, | 175 | int do_migrate_pages(struct mm_struct *mm, |
166 | const nodemask_t *from_nodes, const nodemask_t *to_nodes, int flags); | 176 | const nodemask_t *from_nodes, const nodemask_t *to_nodes, int flags); |
167 | 177 | ||
178 | extern void *cpuset_being_rebound; /* Trigger mpol_copy vma rebind */ | ||
179 | |||
168 | #else | 180 | #else |
169 | 181 | ||
170 | struct mempolicy {}; | 182 | struct mempolicy {}; |
@@ -234,6 +246,12 @@ static inline void mpol_rebind_task(struct task_struct *tsk, | |||
234 | { | 246 | { |
235 | } | 247 | } |
236 | 248 | ||
249 | static inline void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new) | ||
250 | { | ||
251 | } | ||
252 | |||
253 | #define set_cpuset_being_rebound(x) do {} while (0) | ||
254 | |||
237 | static inline struct zonelist *huge_zonelist(struct vm_area_struct *vma, | 255 | static inline struct zonelist *huge_zonelist(struct vm_area_struct *vma, |
238 | unsigned long addr) | 256 | unsigned long addr) |
239 | { | 257 | { |