From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933240AbcA0Oev (ORCPT ); Wed, 27 Jan 2016 09:34:51 -0500 Received: from mx2.parallels.com ([199.115.105.18]:33968 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932494AbcA0Oet (ORCPT ); Wed, 27 Jan 2016 09:34:49 -0500 Date: Wed, 27 Jan 2016 17:34:41 +0300 From: Vladimir Davydov To: Johannes Weiner CC: Andrew Morton , Michal Hocko , , , , Subject: Re: [PATCH 3/5] mm: workingset: separate shadow unpacking and refault calculation Message-ID: <20160127143440.GC9623@esperanza> References: <1453842006-29265-1-git-send-email-hannes@cmpxchg.org> <1453842006-29265-4-git-send-email-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1453842006-29265-4-git-send-email-hannes@cmpxchg.org> X-ClientProxiedBy: US-EXCH2.sw.swsoft.com (10.255.249.46) To US-EXCH.sw.swsoft.com (10.255.249.47) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2016 at 04:00:04PM -0500, Johannes Weiner wrote: > Per-cgroup thrash detection will need to derive a live memcg from the > eviction cookie, and doing that inside unpack_shadow() will get nasty > with the reference handling spread over two functions. > > In preparation, make unpack_shadow() clearly about extracting static > data, and let workingset_refault() do all the higher-level handling. > > Signed-off-by: Johannes Weiner Reviewed-by: Vladimir Davydov