Re: [PATCH] mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter

2017-10-03 Thread Mel Gorman
On Tue, Oct 03, 2017 at 07:47:20PM +0300, Andrey Ryabinin wrote: > Commit 3a321d2a3dde 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 NUM

[PATCH] mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter

2017-10-03 Thread Andrey Ryabinin
Commit 3a321d2a3dde 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 incr