OSDN Git Service

Apply memory policies to top two highest zones when highest zone is ZONE_MOVABLE
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / mm / mempolicy.c
index 71b84b4..172abff 100644 (file)
@@ -149,7 +149,7 @@ static struct zonelist *bind_zonelist(nodemask_t *nodes)
           lower zones etc. Avoid empty zones because the memory allocator
           doesn't like them. If you implement node hot removal you
           have to fix that. */
-       k = policy_zone;
+       k = MAX_NR_ZONES - 1;
        while (1) {
                for_each_node_mask(nd, *nodes) { 
                        struct zone *z = &NODE_DATA(nd)->node_zones[k];