From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Davydov Subject: Re: [PATCH 1/3] memcg: collect kmem bypass conditions into __memcg_kmem_bypass() Date: Mon, 14 Sep 2015 12:03:13 +0300 Message-ID: <20150914090313.GC30743@esperanza> References: <20150913201416.GC25369@htj.duckdns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: <20150913201416.GC25369-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Transfer-Encoding: 7bit To: Tejun Heo Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, kernel-team-b10kYP2dOMg@public.gmane.org On Sun, Sep 13, 2015 at 04:14:16PM -0400, Tejun Heo wrote: > memcg_kmem_newpage_charge() and memcg_kmem_get_cache() are testing the > same series of conditions to decide whether to bypass kmem accounting. > Collect the tests into __memcg_kmem_bypass(). > > This is pure refactoring. > > Signed-off-by: Tejun Heo Reviewed-by: Vladimir Davydov