[PATCH 2/5] balancenuma: fix numa fault statistics

From: Hillf Danton
Date: Sat Nov 17 2012 - 00:10:54 EST


Simply use @pages as we handle both pte and pmd numa faults.

Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---

--- a/kernel/sched/fair.c Sat Nov 17 11:40:36 2012
+++ b/kernel/sched/fair.c Sat Nov 17 12:05:06 2012
@@ -1112,10 +1112,10 @@ void task_numa_fault(int node, int pages
}

/* Record fault statistics */
- p->task_balancenuma->task_numa_fault_tot++;
- p->task_balancenuma->task_numa_fault[node]++;
- p->mm->mm_balancenuma->mm_numa_fault_tot++;
- p->mm->mm_balancenuma->mm_numa_fault[node]++;
+ p->task_balancenuma->task_numa_fault_tot += pages;
+ p->task_balancenuma->task_numa_fault[node] += pages;
+ p->mm->mm_balancenuma->mm_numa_fault_tot += pages;
+ p->mm->mm_balancenuma->mm_numa_fault[node] += pages;

task_numa_placement(p);
}
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/