Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4531554ybz; Tue, 21 Apr 2020 02:16:19 -0700 (PDT) X-Google-Smtp-Source: APiQypKqurXFbTdo8eXX0lqfYsXA4EjT3VOCIc+6XDaQcP1zOAbLXBTEGmCGUfckuqIRfWtEzkGy X-Received: by 2002:a17:906:6b1b:: with SMTP id q27mr19636492ejr.158.1587460578743; Tue, 21 Apr 2020 02:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587460578; cv=none; d=google.com; s=arc-20160816; b=vwIDHUzmLY+WZgu17b+YQkmZyUKXpz+5CukFpK84yBj72RfFXl/thC1I/z04SgdwPD lUct/9vfCVAhJVZMkJ/4aEkr/9vNjPGb08Z2JlyDAvkm9UkpznUxE8TPu4uc7h3LV1Rt 03UlWyInuKMdxqMafOJwS/B/LvLLlFV04p5DDWUOGoFAp0Ieb2GGDxRo6TmyjyI+jIM8 UhqG+rtlJv/oCsD8gVsyrKVPlsfKrGlK17zvQYT9207iL7SwpZxlXdgu61J2XsTgQyo5 lifxcpUW7GJ+G0QXSdYNaYw7Wf8ohPeJL7ifXddtcfK7kyToRK5hjNbKHu+CxPodSZbj WwIw== 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=I3sw/l1Ty/RLFAHS1nsN7sXTsoRW6QUHKGG69TRzLhc=; b=ArP+cWvr2BObcun1KT63nf4BSUhD91n8aU/inu9c4t//6Y75OMw8WaajsUMPDyUKbA MGjC4NKlLgXOeZditu676S1w1QMP6aiIp3WdiArwabimEAe1Np/69b2pdXD4beGXcx79 iqpe9YTOif45oduatGA7bmxH4CGUmKY4pTajFeozT0OafNx/U7ma7o5SsL27Tr0X3srw O4Kyso0uMjAKup44EqAB0+k8ttnG6q99JgE+LbwAAyqkXClCcK7xPauScFEUI+eWCjhz 7G/7KVpmiVT8nnfvzK9Wvr1R2DihWRbompEl2OQSPe5eQ4ybINjrlgkojtEeILi2NEJq BCWw== 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 a23si1188507edy.27.2020.04.21.02.15.56; Tue, 21 Apr 2020 02:16:18 -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 S1728306AbgDUJOB (ORCPT + 99 others); Tue, 21 Apr 2020 05:14:01 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:35615 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgDUJOA (ORCPT ); Tue, 21 Apr 2020 05:14:00 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01358;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0TwDlbjE_1587460437; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TwDlbjE_1587460437) by smtp.aliyun-inc.com(127.0.0.1); Tue, 21 Apr 2020 17:13:58 +0800 Subject: Re: [PATCH 06/18] mm: memcontrol: prepare uncharging 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-7-hannes@cmpxchg.org> From: Alex Shi Message-ID: <20065063-d508-5bb9-572e-ebcb2e41cf85@linux.alibaba.com> Date: Tue, 21 Apr 2020 17:12:51 +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-7-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 ะด??: > The uncharge batching code adds up the anon, file, kmem counts to > determine the total number of pages to uncharge and references to > drop. But the next patches will remove the anon and file counters. > > Maintain an aggregate nr_pages in the uncharge_gather struct. > > Signed-off-by: Johannes Weiner Reviewed-by: Alex Shi