From 537c94feec88f35e664c0c10e88fa5f6cc0622df Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Mon, 24 May 2010 14:31:59 -0700 Subject: [PATCH] --- yaml --- r: 198221 b: refs/heads/master c: 6d556294d5b27fb12f18be7495af45b6156a409e h: refs/heads/master i: 198219: 6c150252c8a7949b5873c88888a6738a3a85f55f v: v3 --- [refs] | 2 +- trunk/mm/mempolicy.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index ce30b4f7c635..9c9325632ab5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e13861d822f8f443ca0c020ea8fc2dc01039cd63 +refs/heads/master: 6d556294d5b27fb12f18be7495af45b6156a409e diff --git a/trunk/mm/mempolicy.c b/trunk/mm/mempolicy.c index 08f40a2f3fe0..ad500f3b12bf 100644 --- a/trunk/mm/mempolicy.c +++ b/trunk/mm/mempolicy.c @@ -127,9 +127,6 @@ static int is_valid_nodemask(const nodemask_t *nodemask) { int nd, k; - /* Check that there is something useful in this mask */ - k = policy_zone; - for_each_node_mask(nd, *nodemask) { struct zone *z; @@ -145,7 +142,7 @@ static int is_valid_nodemask(const nodemask_t *nodemask) static inline int mpol_store_user_nodemask(const struct mempolicy *pol) { - return pol->flags & (MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES); + return pol->flags & MPOL_MODE_FLAGS; } static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig,