[PATCH] cpuset: mempolicy one more nodemask conversion
Finish converting mm/mempolicy.c from bitmaps to nodemasks. The previous conversion had left one routine using bitmaps, since it involved a corresponding change to kernel/cpuset.c Fix that interface by replacing with a simple macro that calls nodes_subset(), or if !CONFIG_CPUSET, returns (1). Signed-off-by: Paul Jackson <pj@sgi.com> Cc: Christoph Lameter <christoph@lameter.com> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Linus Torvalds

vecāks
96b7f34143
revīzija
5966514db6
@@ -387,10 +387,9 @@ static int contextualize_policy(int mode, nodemask_t *nodes)
|
||||
if (!nodes)
|
||||
return 0;
|
||||
|
||||
/* Update current mems_allowed */
|
||||
cpuset_update_current_mems_allowed();
|
||||
/* Ignore nodes not set in current->mems_allowed */
|
||||
cpuset_restrict_to_mems_allowed(nodes->bits);
|
||||
if (!cpuset_nodes_subset_current_mems_allowed(*nodes))
|
||||
return -EINVAL;
|
||||
return mpol_check_policy(mode, nodes);
|
||||
}
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user