[PATCH 3/5] balancenuma: cleanup in resetting numa scan

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


Checking ->mm is not needed, but too late if necessary.

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

--- a/kernel/sched/fair.c Sat Nov 17 12:12:08 2012
+++ b/kernel/sched/fair.c Sat Nov 17 12:14:26 2012
@@ -1125,7 +1125,7 @@ static void reset_ptenuma_scan(struct ta
ACCESS_ONCE(p->mm->numa_scan_seq)++;
p->mm->numa_scan_offset = 0;

- if (p->mm && p->mm->mm_balancenuma)
+ if (p->mm->mm_balancenuma)
p->mm->mm_balancenuma->mm_numa_fault_tot >>= 1;
if (p->task_balancenuma) {
int nid;
--
--
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/