Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1744917iog; Sat, 25 Jun 2022 18:56:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vzpGl91smvd/DcVDUQtOgUAvBO1CTcm9kBvLzuy+gD0u590tTqJ93n5Ne6oWDJjYHqKGYM X-Received: by 2002:a05:6402:3907:b0:431:6776:64e7 with SMTP id fe7-20020a056402390700b00431677664e7mr8407268edb.0.1656208601275; Sat, 25 Jun 2022 18:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656208601; cv=none; d=google.com; s=arc-20160816; b=eEH9lDId3uJSfoFnlXIFfVfU9yA1uQSKZXkVwFfiNSgjHk323im8oOULYq+QtTf5rO 0tAkFynn7V4jAUb6/jeO3Eirbr5g11c7TVLA1ZDb9w6UkCEPAl00f6ZzCGXhq8J4bt+I es0nl0Fbe2oTA31xD5IC8y6A/q0Lv8exv3vdeqE/5sdP1NUjZvKeaIoA0PwF1aqwKvA1 JUgJqY+ueIAI5gmwPxPTf/iiMSoP/x079a1LEbkbLlVnvsWKio0RD+CxAZE6C6vF7cBJ /IHFZNzX06rI0XjQDYGhZsLbWo3HXMG91SLhibX4OIact4is6u8l3EFZ9gthvMkrPOw/ fILA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=ZHwnwrn3rPLBw4iau7Jw3zxeWr01E6ma/j2ZXjk5zGg=; b=TDyxjIlBY0EnyXYwkT31qFf3Td1RxJTlj/aHgAOXY2cANUNteIxi+iqCtMEuK5b5j/ YCFZSzj89pIV1d1Xhp5bQfzuorVENZlRloFYTKsoPuKZDZSQR0PhrM3QyejBRP9LBaIE LQ2zqE/vTthhE6jdGhuqaemY7NiT4vTFzyNOxn7tiJnf02ed8CZetmAAo3f5xnvvaUnm p35RxTfjAQ/MjrONhtzGvrSSitb/ITjEVGAIbGHmBZlJqcLLQGRePQGVultb3KLZBCH5 Uin5hEZ5b0B+FGDkD2cSLvBAxVqRoHSHU/mIZ/PNQLT+2MWGjQybAmBfVEcManKFXc0Q 3UYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="inhynC+/"; 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 t2-20020a508d42000000b00435703ece32si8380033edt.84.2022.06.25.18.56.16; Sat, 25 Jun 2022 18:56:41 -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="inhynC+/"; 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 S233789AbiFZBl5 (ORCPT + 99 others); Sat, 25 Jun 2022 21:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233773AbiFZBl4 (ORCPT ); Sat, 25 Jun 2022 21:41:56 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99DD413DE3; Sat, 25 Jun 2022 18:41:54 -0700 (PDT) Date: Sat, 25 Jun 2022 18:41:46 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1656207712; 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: in-reply-to:in-reply-to:references:references; bh=ZHwnwrn3rPLBw4iau7Jw3zxeWr01E6ma/j2ZXjk5zGg=; b=inhynC+/9JmTzlEUN75pSJA6UyVqmDxmnGSgTFQHSr2kBt1CK8HHksb3zxHQsrKsUctugk SpYIih+PNnMaCVDkKN7IUONVnXa4JDeJ+OIHiL6jjGlrQTlPkj+zbYVVeDLiEFoaJXx6oQ 3ELrf+PeJB10lLu5X+Q7mJuA9mTGfk8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Xiang Yang Cc: hannes@cmpxchg.org, mhocko@kernel.org, shakeelb@google.com, songmuchun@bytedance.com, akpm@linux-foundation.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] mm/memcontrol.c: replace cgroup_memory_nokmem with mem_cgroup_kmem_disabled() Message-ID: References: <20220625061844.226764-1-xiangyang3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220625061844.226764-1-xiangyang3@huawei.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sat, Jun 25, 2022 at 02:18:44PM +0800, Xiang Yang wrote: > mem_cgroup_kmem_disabled() checks whether the kmem accounting is off. > Therefore, replace cgroup_memory_nokmem with mem_cgroup_kmem_disabled(), > which is the same work in percpu.c and slab_common.c. > > Signed-off-by: Xiang Yang Acked-by: Roman Gushchin Thanks!