aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/mempolicy.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 08f40a2f3fe0..ad500f3b12bf 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -127,9 +127,6 @@ static int is_valid_nodemask(const nodemask_t *nodemask)
127{ 127{
128 int nd, k; 128 int nd, k;
129 129
130 /* Check that there is something useful in this mask */
131 k = policy_zone;
132
133 for_each_node_mask(nd, *nodemask) { 130 for_each_node_mask(nd, *nodemask) {
134 struct zone *z; 131 struct zone *z;
135 132
@@ -145,7 +142,7 @@ static int is_valid_nodemask(const nodemask_t *nodemask)
145 142
146static inline int mpol_store_user_nodemask(const struct mempolicy *pol) 143static inline int mpol_store_user_nodemask(const struct mempolicy *pol)
147{ 144{
148 return pol->flags & (MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES); 145 return pol->flags & MPOL_MODE_FLAGS;
149} 146}
150 147
151static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig, 148static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig,