]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter
authorAndrey Ryabinin <aryabinin@virtuozzo.com>
Fri, 13 Oct 2017 22:57:43 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Oct 2017 23:18:32 +0000 (16:18 -0700)
commitf5287c44b19ab75def92203bcec52cfde3eb2f83
treed7cbecb649db0588d47ea6b439aa9209dff908b4
parente0fbc4a5595458c4bb4a3493eb5b89de2ac9b413
mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter

Commit 48514b640657 ("mm: change the call sites of numa statistics
items") separated NUMA counters from zone counters, but the
NUMA_INTERLEAVE_HIT call site wasn't updated to use the new interface.
So alloc_page_interleave() actually increments NR_ZONE_INACTIVE_FILE
instead of NUMA_INTERLEAVE_HIT.

Fix this by using __inc_numa_state() interface to increment
NUMA_INTERLEAVE_HIT.

Link: http://lkml.kernel.org/r/20171003191003.8573-1-aryabinin@virtuozzo.com
Fixes: 48514b640657 ("mm: change the call sites of numa statistics items")
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Kemi Wang <kemi.wang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c