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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4E62C43334 for ; Sun, 26 Jun 2022 01:41:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 085C16B0071; Sat, 25 Jun 2022 21:41:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 034FC6B0072; Sat, 25 Jun 2022 21:41:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E3F5D6B0073; Sat, 25 Jun 2022 21:41:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id D1E646B0071 for ; Sat, 25 Jun 2022 21:41:55 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 769AB60755 for ; Sun, 26 Jun 2022 01:41:55 +0000 (UTC) X-FDA: 79618685790.14.B7F9A03 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by imf09.hostedemail.com (Postfix) with ESMTP id B13DE140029 for ; Sun, 26 Jun 2022 01:41:54 +0000 (UTC) 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 ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="inhynC+/"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf09.hostedemail.com: domain of roman.gushchin@linux.dev designates 188.165.223.204 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656207715; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ZHwnwrn3rPLBw4iau7Jw3zxeWr01E6ma/j2ZXjk5zGg=; b=1qxVxkWflD+tf1zl2GtsojdmY/coK7latVIRJLcCeF3s9qWtr3tE2vOIEl9Y7eWBHm1/Sf Qlr1ynkb6Vu5FmrEYVzVUgPs5i8nUfvgJTXiulo8R7cesaQJY8um808HrUEMFcuo9C3h3Y WQdadAX/qQtr2siYUGmC1b3cQzBGRAI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656207715; a=rsa-sha256; cv=none; b=m9v6fi2IkZ/IwLYM9T5fC9mmlJqKj6pIllkcfzOuwy6x6Zk2zSC1Tmh1WDwUkmm34vFcs9 J/dtPWa0SkutaPzqT63KW71dOyXJaiTELrWhD0oTIpEfD7TXO7wL/fLLOzC0WlVK74LAOl NTqiMOy8YFbTrbVWlv+2Sw1E9vZQVf4= X-Stat-Signature: adbg94h1tcj5oefphxhac9gfg3j6g3wy X-Rspamd-Queue-Id: B13DE140029 X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="inhynC+/"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf09.hostedemail.com: domain of roman.gushchin@linux.dev designates 188.165.223.204 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev X-Rspamd-Server: rspam12 X-HE-Tag: 1656207714-932657 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 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!