[PATCH 1/3] mm, vmscan: cleanup lru size claculations

2017-01-17 Thread Michal Hocko
From: Michal Hocko lruvec_lru_size returns the full size of the LRU list while we sometimes need a value reduced only to eligible zones (e.g. for lowmem requests). inactive_list_is_low is one such user. Later patches will add more of them. Add a new parameter to lruvec_lru_size and allow it filte

Re: [PATCH 1/3] mm, vmscan: cleanup lru size claculations

2017-01-16 Thread Minchan Kim
On Mon, Jan 16, 2017 at 08:33:15PM +0100, Michal Hocko wrote: > From: Michal Hocko > > lruvec_lru_size returns the full size of the LRU list while we sometimes > need a value reduced only to eligible zones (e.g. for lowmem requests). > inactive_list_is_low is one such user. Later patches will add

Re: [PATCH 1/3] mm, vmscan: cleanup lru size claculations

2017-01-16 Thread Hillf Danton
On Tuesday, January 17, 2017 3:33 AM Michal Hocko wrote: > > From: Michal Hocko > > lruvec_lru_size returns the full size of the LRU list while we sometimes > need a value reduced only to eligible zones (e.g. for lowmem requests). > inactive_list_is_low is one such user. Later patches will add

[PATCH 1/3] mm, vmscan: cleanup lru size claculations

2017-01-16 Thread Michal Hocko
From: Michal Hocko lruvec_lru_size returns the full size of the LRU list while we sometimes need a value reduced only to eligible zones (e.g. for lowmem requests). inactive_list_is_low is one such user. Later patches will add more of them. Add a new parameter to lruvec_lru_size and allow it filte