Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4533495ybz; Tue, 21 Apr 2020 02:18:48 -0700 (PDT) X-Google-Smtp-Source: APiQypLO6myIiK3SF579z6BiDA6OOayd1xEEy4qet2uLIiyPBZEA5CAQUcTZ04Orn1MQhlroct4u X-Received: by 2002:a17:906:160a:: with SMTP id m10mr19497572ejd.8.1587460728711; Tue, 21 Apr 2020 02:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587460728; cv=none; d=google.com; s=arc-20160816; b=oaqQbGGpJPIwYbA+gaVKrBP7w1drPP12bH40iIkRTh1wno6PsLvDdmBETI82o13PZT edJVk2A0pmtYsR/jfnDz/xnvLE9k2MCFdDUQjaMcfg8gD0HmwjwFvyvE1dbIUfSaV3ky Oq7FqzquZSCrLL5B4zu7Wy68uV8IgXSoEbwcCse5Rf67SC4NoAHSAvUnd/Uwc80hg+vO qxU1G1GwrSnfBpX/EpJlnBpyd6lBSBrJG7br2Bc4ztJkjuu592wEK6x5oTxioyVWfSf1 XpOqXVp/ofvuIApgRzZmrj+ouxlXAl84pOd0QGoWaqhe4crZRNxySOsKodgChCjlYALp 11Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=YQbdbsswMqsEy4/+pnvnBVlekptIOnFoSMUx/cYkneQ=; b=zPmpr8hLs6rSAxndwhLuyCZZMba14qRGhjeu+HsvI2PSxcOQug9gej0Lq1XY+tW/Nt bB6JNpjQWlh5s4Gr5oU2qV/Nbjt46eVIgaP9E2YrggmVsAx0YuSuDRAgdcdds9/4ipfG 6wzCHpZjqTnqchaGrUwg8MHLdmxUse4im+eveeDv5xS4v2PRdgn9tI9ocThsmpaEKPwv 5UH3PWLnlMyIrbO+4lolr3aZ94Ci2s9VSEIUifBSafKLJSGpZfz27lWQUYtQeGa/yy+1 YHClwHNc35egkvXkkNyO1X1+jekxoJinuez1PNOTGHniWzBdqnfp8Vqwb9UcYK5iPV38 XUYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si1222095ejy.188.2020.04.21.02.18.25; Tue, 21 Apr 2020 02:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727941AbgDUJPO (ORCPT + 99 others); Tue, 21 Apr 2020 05:15:14 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:38471 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgDUJPO (ORCPT ); Tue, 21 Apr 2020 05:15:14 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01422;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0TwDXJ5r_1587460498; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TwDXJ5r_1587460498) by smtp.aliyun-inc.com(127.0.0.1); Tue, 21 Apr 2020 17:14:59 +0800 Subject: Re: [PATCH 07/18] mm: memcontrol: prepare move_account for removal of private page type counters To: Johannes Weiner , Joonsoo Kim Cc: Shakeel Butt , Hugh Dickins , Michal Hocko , "Kirill A. Shutemov" , Roman Gushchin , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20200420221126.341272-1-hannes@cmpxchg.org> <20200420221126.341272-8-hannes@cmpxchg.org> From: Alex Shi Message-ID: Date: Tue, 21 Apr 2020 17:13:52 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200420221126.341272-8-hannes@cmpxchg.org> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/4/21 ????6:11, Johannes Weiner ะด??: > When memcg uses the generic vmstat counters, it doesn't need to do > anything at charging and uncharging time. It does, however, need to > migrate counts when pages move to a different cgroup in move_account. > > Prepare the move_account function for the arrival of NR_FILE_PAGES, > NR_ANON_MAPPED, NR_ANON_THPS etc. by having a branch for files and a > branch for anon, which can then divided into sub-branches. > > Signed-off-by: Johannes Weiner Reviewed-by: Alex Shi