Re: [PATCH 1/8] mm: vmscan: simplify lruvec_lru_size()

2019-10-23 Thread Michal Hocko
On Tue 22-10-19 10:47:56, Johannes Weiner wrote: > This function currently takes the node or lruvec size and subtracts > the zones that are excluded by the classzone index of the > allocation. It uses four different types of counters to do this. > > Just add up the eligible zones. The original

Re: [PATCH 1/8] mm: vmscan: simplify lruvec_lru_size()

2019-10-22 Thread Roman Gushchin
On Tue, Oct 22, 2019 at 10:47:56AM -0400, Johannes Weiner wrote: > This function currently takes the node or lruvec size and subtracts > the zones that are excluded by the classzone index of the > allocation. It uses four different types of counters to do this. > > Just add up the eligible zones.

[PATCH 1/8] mm: vmscan: simplify lruvec_lru_size()

2019-10-22 Thread Johannes Weiner
This function currently takes the node or lruvec size and subtracts the zones that are excluded by the classzone index of the allocation. It uses four different types of counters to do this. Just add up the eligible zones. Signed-off-by: Johannes Weiner --- mm/vmscan.c | 21