Skip to content

Commit

Permalink
mm/mempolicy.c: use enum value MPOL_REBIND_ONCE in mpol_rebind_policy()
Browse files Browse the repository at this point in the history
We have enum definition in mempolicy.h: MPOL_REBIND_ONCE.  It should
replace the magic number 0 for step comparison in function
mpol_rebind_policy.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Wang Sheng-Hui authored and Linus Torvalds committed May 29, 2012
1 parent 71dd0b8 commit 89c522c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask,
{
if (!pol)
return;
if (!mpol_store_user_nodemask(pol) && step == 0 &&
if (!mpol_store_user_nodemask(pol) && step == MPOL_REBIND_ONCE &&
nodes_equal(pol->w.cpuset_mems_allowed, *newmask))
return;

Expand Down

0 comments on commit 89c522c

Please sign in to comment.