Re: [PATCH -mm] vmscan: move reclaim_state handling to shrink_slab

2015-01-14 Thread Vladimir Davydov
On Wed, Jan 14, 2015 at 03:34:49PM -0800, Andrew Morton wrote: > On Wed, 14 Jan 2015 16:55:36 +0300 Vladimir Davydov > wrote: > > This patch also makes shrink_slab() return the number of reclaimed slab > > pages (obtained from reclaim_state) instead of the number of reclaimed > > objects, because

Re: [PATCH -mm] vmscan: move reclaim_state handling to shrink_slab

2015-01-14 Thread Andrew Morton
On Wed, 14 Jan 2015 16:55:36 +0300 Vladimir Davydov wrote: > current->reclaim_state is only used to count the number of slab pages > reclaimed by shrink_slab(). So instead of initializing it before we are > going to call try_to_free_pages() or shrink_zone(), let's set in > directly in shrink_sla

[PATCH -mm] vmscan: move reclaim_state handling to shrink_slab

2015-01-14 Thread Vladimir Davydov
current->reclaim_state is only used to count the number of slab pages reclaimed by shrink_slab(). So instead of initializing it before we are going to call try_to_free_pages() or shrink_zone(), let's set in directly in shrink_slab(). This patch also makes shrink_slab() return the number of reclaim