From: Wang Sheng-Hui Date: Tue, 29 May 2012 22:06:16 +0000 (-0700) Subject: mm/mempolicy.c: use enum value MPOL_REBIND_ONCE in mpol_rebind_policy() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=89c522c78a6fbc0e24b71e65b65df8b247d5aebd;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 88f9422b92e7..a388888b6fcf 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -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;