[PATCH] Implement sys_* do_* layering in the memory policy layer.
authorChristoph Lameter <clameter@engr.sgi.com>
Sun, 30 Oct 2005 01:16:59 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:45 +0000 (21:40 -0700)
commit8bccd85ffbaf8ff1448d1235fa6594e207695531
treed5ed1f3b2ba1d301c74cc0a62ed416e634c5bebb
parentbb7e7e032d2cb8e0e9a88a2be209de5e61033b39
[PATCH] Implement sys_* do_* layering in the memory policy layer.

- Do a separation between do_xxx and sys_xxx functions. sys_xxx functions
  take variable sized bitmaps from user space as arguments. do_xxx functions
  take fixed sized nodemask_t as arguments and may be used from inside the
  kernel. Doing so simplifies the initialization code. There is no
  fs = kernel_ds assumption anymore.

- Split up get_nodes into get_nodes (which gets the node list) and
  contextualize_policy which restricts the nodes to those accessible
  to the task and updates cpusets.

- Add comments explaining limitations of bind policy

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c