]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/mempolicy.c
regulator: max8998: Factor out struct voltage_map_desc
[linux.git] / mm / mempolicy.c
index ee2bce59d2bfffb557aecac51245a7fdee950936..af171ccb56a29713a326b1018e38215700ffcfe5 100644 (file)
@@ -350,7 +350,7 @@ static void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask)
 {
        if (!pol)
                return;
-       if (!mpol_store_user_nodemask(pol) &&
+       if (!mpol_store_user_nodemask(pol) && !(pol->flags & MPOL_F_LOCAL) &&
            nodes_equal(pol->w.cpuset_mems_allowed, *newmask))
                return;
 
@@ -2304,7 +2304,7 @@ int mpol_misplaced(struct page *page, struct vm_area_struct *vma, unsigned long
        unsigned long pgoff;
        int thiscpu = raw_smp_processor_id();
        int thisnid = cpu_to_node(thiscpu);
-       int polnid = -1;
+       int polnid = NUMA_NO_NODE;
        int ret = -1;
 
        pol = get_vma_policy(vma, addr);