From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EC62C4361B for ; Thu, 10 Dec 2020 16:06:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E952C23D39 for ; Thu, 10 Dec 2020 16:06:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E952C23D39 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cmpxchg.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 66A546B0071; Thu, 10 Dec 2020 11:06:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 618F76B0072; Thu, 10 Dec 2020 11:06:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4B9C26B0073; Thu, 10 Dec 2020 11:06:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0093.hostedemail.com [216.40.44.93]) by kanga.kvack.org (Postfix) with ESMTP id 2C0526B0071 for ; Thu, 10 Dec 2020 11:06:22 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id A0B1F3650 for ; Thu, 10 Dec 2020 16:06:21 +0000 (UTC) X-FDA: 77577849762.16.noise25_42099cb273f9 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 89F42100E690C for ; Thu, 10 Dec 2020 16:06:21 +0000 (UTC) X-HE-Tag: noise25_42099cb273f9 X-Filterd-Recvd-Size: 3887 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Thu, 10 Dec 2020 16:06:20 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id c5so2405068wrp.6 for ; Thu, 10 Dec 2020 08:06:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9EEM0AX878xSa8V2cvUDpTLDczQ0IGzyz0LRReW9tzA=; b=dG3nDfcSFKcJqfMUlDBawK6U+/17xUIuG5w7oEcJKBYdW1zerFAMxTR27Vw3ED9rWV aZ5xpsrUl1k/73I4w1FR6llyHh342rQEBBSuerrIpeeWaTwd0YgiGKLpWIRVtTWvd0Vr OvEPfWDYhl0k31LxHGSu2Y79gbq2+C/UQRm4+nfafn5ylsnB1sL/jMp6VoQ1CSC8wFkX TGklkiZNfuDYk9kbL+3VXuWSYYQ0/jsni1x+f55I0oy0LfaTM5ZgzIiw6+vZ2IaGg5TV VkN2qdkxGVbKvtdqLvrMGA2oN0cFpRSU6eGeFz2VAY046PYj+H8zuJcV2RZuDHBwQt/o VW3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9EEM0AX878xSa8V2cvUDpTLDczQ0IGzyz0LRReW9tzA=; b=IaY36HoWJXhiPdl0AlyiBhC23C8tiBVP7ZOqc38KiDBgjEtA6VamJyx4xgY0LzIQ4P 6hGUVbTmCS90kyjjUzC5x5HhGS8m1FhW8nsHOyIRH7rtthcumfzMZ4I1tvvXTfFhcnV8 hoQPUIx2uBd3IFdb9OfN6g1NWoT0l9jTetVge+5RpOIHjBHGi2jIL4aZ42eCv+WzFAZO MycNm5TR6bdgNGPXiAUzbNLb7a9YN4arMpLaT+6GFTbrCysZFblX5zYn7WUE3lnbV9g9 GuSVZZzCpPE+KX9fyHPCHvaChKrR49BIZkCVeRuNXEj9JYQxtTsvM1ACudluzaEb5C9V VPpg== X-Gm-Message-State: AOAM532lFGJNclQVBOOpeWL5LkiLnYsmbbYh7x8BgN6lQPxR8tHJNq2w /bh3k4hz3/ZpIPYNdwvzw1XVRQ== X-Google-Smtp-Source: ABdhPJwbsAebsVatgwJVP7G/BlySZfheiXSb2ekaT+aAULkzlUatfjHBeww5kzznvVZDMQ8OamZaBw== X-Received: by 2002:adf:9124:: with SMTP id j33mr8598967wrj.376.1607616379710; Thu, 10 Dec 2020 08:06:19 -0800 (PST) Received: from localhost (p4fdabc80.dip0.t-ipconnect.de. [79.218.188.128]) by smtp.gmail.com with ESMTPSA id x7sm2719625wmi.11.2020.12.10.08.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 08:06:19 -0800 (PST) Date: Thu, 10 Dec 2020 17:04:13 +0100 From: Johannes Weiner To: Muchun Song Cc: gregkh@linuxfoundation.org, rafael@kernel.org, adobriyan@gmail.com, akpm@linux-foundation.org, mhocko@kernel.org, vdavydov.dev@gmail.com, hughd@google.com, will@kernel.org, guro@fb.com, rppt@kernel.org, tglx@linutronix.de, esyr@redhat.com, peterx@redhat.com, krisman@collabora.com, surenb@google.com, avagin@openvz.org, elver@google.com, rdunlap@infradead.org, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: Re: [RESEND PATCH v2 01/12] mm: memcontrol: fix NR_ANON_THPS account Message-ID: <20201210160413.GH264602@cmpxchg.org> References: <20201206101451.14706-1-songmuchun@bytedance.com> <20201206101451.14706-2-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201206101451.14706-2-songmuchun@bytedance.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Dec 06, 2020 at 06:14:40PM +0800, Muchun Song wrote: > The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec > by one rather than nr_pages. > > Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANON_THPS counter") > Signed-off-by: Muchun Song Acked-by: Johannes Weiner But please change the subject to 'mm: memcontrol: fix NR_ANON_THPS accounting in charge moving'