aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mempolicy.h
diff options
context:
space:
mode:
authorPaul Jackson <pj@sgi.com>2006-01-08 04:00:56 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-08 23:12:43 -0500
commit45b07ef31d1182d2cfde7711327e3afb268bb1ac (patch)
tree3bf820531f920b43d4ed963643b1f565c82bcaa4 /include/linux/mempolicy.h
parentd0d963281ccb22e6f339bfdd75c6b2e31351929f (diff)
[PATCH] cpusets: swap migration interface
Add a boolean "memory_migrate" to each cpuset, represented by a file containing "0" or "1" in each directory below /dev/cpuset. It defaults to false (file contains "0"). It can be set true by writing "1" to the file. If true, then anytime that a task is attached to the cpuset so marked, the pages of that task will be moved to that cpuset, preserving, to the extent practical, the cpuset-relative placement of the pages. Also anytime that a cpuset so marked has its memory placement changed (by writing to its "mems" file), the tasks in that cpuset will have their pages moved to the cpusets new nodes, preserving, to the extent practical, the cpuset-relative placement of the moved pages. Signed-off-by: Paul Jackson <pj@sgi.com> Cc: Christoph Lameter <christoph@lameter.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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h
index 3e61e829681d..66247eff24a0 100644
--- a/include/linux/mempolicy.h
+++ b/include/linux/mempolicy.h
@@ -235,6 +235,13 @@ static inline struct zonelist *huge_zonelist(struct vm_area_struct *vma,
235 return NODE_DATA(0)->node_zonelists + gfp_zone(GFP_HIGHUSER); 235 return NODE_DATA(0)->node_zonelists + gfp_zone(GFP_HIGHUSER);
236} 236}
237 237
238static inline int do_migrate_pages(struct mm_struct *mm,
239 const nodemask_t *from_nodes,
240 const nodemask_t *to_nodes, int flags)
241{
242 return 0;
243}
244
238static inline void check_highest_zone(int k) 245static inline void check_highest_zone(int k)
239{ 246{
240} 247}