mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter
authorAndrey Ryabinin <[email protected]>
Fri, 13 Oct 2017 22:57:43 +0000 (15:57 -0700)
committerLinus Torvalds <[email protected]>
Fri, 13 Oct 2017 23:18:32 +0000 (16:18 -0700)
commitde55c8b251974247edda38e952da8e8dd71683ec
treed7cbecb649db0588d47ea6b439aa9209dff908b4
parent8a1ac5dc7be09883051b1bf89a5e57d7ad850fa5
mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter

Commit 3a321d2a3dde ("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/[email protected]
Fixes: 3a321d2a3dde ("mm: change the call sites of numa statistics items")
Signed-off-by: Andrey Ryabinin <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Cc: Kemi Wang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mempolicy.c