Commit 89c522c78a6fbc0e24b71e65b65df8b247d5aebd

Authored by Wang Sheng-Hui
Committed by Linus Torvalds
1 parent 71dd0b8ae8

mm/mempolicy.c: use enum value MPOL_REBIND_ONCE in mpol_rebind_policy()

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -390,7 +390,7 @@
390 390 {
391 391 if (!pol)
392 392 return;
393   - if (!mpol_store_user_nodemask(pol) && step == 0 &&
  393 + if (!mpol_store_user_nodemask(pol) && step == MPOL_REBIND_ONCE &&
394 394 nodes_equal(pol->w.cpuset_mems_allowed, *newmask))
395 395 return;
396 396