Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1317855rwb; Sat, 1 Oct 2022 21:31:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6IZIWx+qWW0awFq/qNZ9f1jsl+aEAoC++YaWBy59DgIzHKIxnketiYy/wRhy6eJKfQ+RDH X-Received: by 2002:a05:6402:90e:b0:443:ec4b:2b03 with SMTP id g14-20020a056402090e00b00443ec4b2b03mr13575469edz.71.1664685092214; Sat, 01 Oct 2022 21:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664685092; cv=none; d=google.com; s=arc-20160816; b=S9RndLrzY2umLVbDml5WeEwvKN4vnwy1Itn17n0vLXRPMxsDt6S3uWbjvVT/lpm+MY BZv/DjUN+OR/7jSDdzNY5jPyo2dBaRqbnL3hMbtKn5y5Pgzv5eOYhpknfUWJ3u2U4P4N i+TCYhEMIkalUPOojbvaIHLp5m7bJvLgID8BolwA4/17o07VrAlq8CTWJmsEdgsukCbM xeJuj1fwOWj/CVoCwPW97U5+L1gdO7dC/6tlkgvOLBtT6K9bWu91TlFWkHhXZxOurEr2 80ZLgpwbX0Vcy6SVZOEpp6Zl3ho+4twKFJzWuVcNC8YPgbCK4Vm78/QkTMpzyYG+aYoz lZzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=vc7/td9WozM5pVmB5K7uQM4nbJeJhzcm1HJ4XY9GakU=; b=wmONZvGYw5dxbvLwNRVEF9+cekFQe/ILS0d8AtYqUKkka1cLX3DLgOFpBRXznF4Puh STfZhBgJ1JH/4dObQZb37dS8qK58qKNYzfDNRJ53iFgMpue4nOBScWEOxifsaV5UBzg6 Do+ihmChb/Bepsgw500w6A6B/He/DWzXf3+nEwDtghLDyp4HaoddTWuTI/l+KLZF9Rt3 5JWlFwHKtrfizLNmgplnxP4Pti+ocYViQAzrWVxeBp0XZvURqoo9vLJ7V40JASGlzwOp pJGXFJrN18M2xGIeg5yp5GssQOLVGQetbiRZsDouC7+C46JiL8vIfYUkkFbT9KX+4Pva Uu+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lKPtg3cG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd16-20020a1709076e1000b00781dbee4273si5054569ejc.514.2022.10.01.21.30.51; Sat, 01 Oct 2022 21:31:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lKPtg3cG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbiJBDpg (ORCPT + 99 others); Sat, 1 Oct 2022 23:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiJBDpb (ORCPT ); Sat, 1 Oct 2022 23:45:31 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 982392EF21; Sat, 1 Oct 2022 20:45:27 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1664682325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vc7/td9WozM5pVmB5K7uQM4nbJeJhzcm1HJ4XY9GakU=; b=lKPtg3cGoFY9Kpcu070SXiUX1GJwQaYBbfJzBQ4ZE15SZIv0jkZr0kPwUqy0BUAUPg//h5 T9oOOROm3XM4Qi52/Z9EfdLCEUlWdP/UklihlzZf6I4ieJ2Y8BgEnxvNOnEHcyAiN5DTTA lEN6x8V2zTvhdvOaWB9XSVVAGJaJzTs= MIME-Version: 1.0 Subject: Re: [PATCH] mm: memcontrol: use mem_cgroup_is_root() helper X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220930134433.338103-1-kamalesh.babulal@oracle.com> Date: Sun, 2 Oct 2022 11:45:19 +0800 Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Tom Hromatka , cgroups@vger.kernel.org, Linux MM , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <828C4B5A-7114-47AF-BA99-0920EA41C753@linux.dev> References: <20220930134433.338103-1-kamalesh.babulal@oracle.com> To: Kamalesh Babulal X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 30, 2022, at 21:44, Kamalesh Babulal = wrote: >=20 > Replace the checks for memcg is root memcg, with mem_cgroup_is_root() > helper. >=20 > Signed-off-by: Kamalesh Babulal Reviewed-by: Muchun Song Thanks.