diff options
author | Paul Jackson <pj@sgi.com> | 2006-01-08 04:01:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:13:42 -0500 |
commit | 5966514db662fb24c9bb43226a80106bcffd51f8 (patch) | |
tree | 9c6d8f4f6fee0d6574de7e225141d37b28811dc3 /mm/mempolicy.c | |
parent | 96b7f34143c2c823a6a750fcb758fc66c44945d2 (diff) |
[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>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 7051fe450e96..9dea2b8a7d48 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -387,10 +387,9 @@ static int contextualize_policy(int mode, nodemask_t *nodes) | |||
387 | if (!nodes) | 387 | if (!nodes) |
388 | return 0; | 388 | return 0; |
389 | 389 | ||
390 | /* Update current mems_allowed */ | ||
391 | cpuset_update_current_mems_allowed(); | 390 | cpuset_update_current_mems_allowed(); |
392 | /* Ignore nodes not set in current->mems_allowed */ | 391 | if (!cpuset_nodes_subset_current_mems_allowed(*nodes)) |
393 | cpuset_restrict_to_mems_allowed(nodes->bits); | 392 | return -EINVAL; |
394 | return mpol_check_policy(mode, nodes); | 393 | return mpol_check_policy(mode, nodes); |
395 | } | 394 | } |
396 | 395 | ||