Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp238370rdb; Mon, 18 Sep 2023 13:33:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxVmba6FX0hc7t8uzh5e4bbZntCGIdyk/IbHj1T6UAp9XK0s+BY356sB6iYWWbEaII5YhN X-Received: by 2002:a17:903:22d1:b0:1b9:c68f:91a5 with SMTP id y17-20020a17090322d100b001b9c68f91a5mr10891632plg.6.1695069209834; Mon, 18 Sep 2023 13:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695069209; cv=none; d=google.com; s=arc-20160816; b=oV/0bW70CRgudX80BtGET4NOSSTPYkvfCCgt9STQGgadv9Gv2nQ7pQBy7uzKh4l2Cr uu5PVffj5aDdhMa9qEN5EVKBIAPUb++BQeHXdVmatMXmqqxSo/Fu8XPPYHJ5AV4E2ZYx iaw57SwcauSb2cHGfn6LI+T1ib4Lu4BgMVwbq+VM30ixkwXBYV+Gd8WCsXLwNb1RDMgH 92Wpzb+pMwdn5o4VDKJdD142fgliiS/+ORxg0fXBX5toFBR3UnkARWG/1Vt+5sHDess0 KvUAZ6pzONPdI4CAh8sS1vZw2A3r78/uSMAFNthDjjLZ1uR7llqEGMlApN9QJe5UbR6o QdYw== 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:date:sender:dkim-signature; bh=HIq/dcnUlfz9c9ZMg9REc9/bKulrunuVIS2q81WpsmA=; fh=BGKs6JkLQnxgMvWGXvBW3+t9i6GdlmBO/g1vUt/HbRE=; b=Ho+C5c0OS+4A80Bu9qlRBpiaYCw7gOhx6wKYq851T1vz0xwlMkiE/93qK5CNgEZVLr ljFDjh2O0+7ttFvb4VDIoY8XfVTTnWuyxYdE4ScODXCj3ethy0xuQOoK0kkdfupbK0C/ h3qbDg/aigBVlxPMsnngVff6/8Ip+nhQzyzfoA+50rE7Bxnooy65KHOOxCLkW9Mb1Nn/ lzB2kRwpUMtSI+Q6f1yt0uryQrDTJdZzUEifiecL/ZHxHGbp41ryr1AdaMx/SyfJb+9I sem3VSLnxudRoEimIm7CFJIJdAWCOaLioTYkD7gDBfj46D41+GLOHAc8jTAMzR/CVcNK 7e/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FRRbTfPl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n3-20020a170903110300b001bb993caaedsi9226574plh.173.2023.09.18.13.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 13:33:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FRRbTfPl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5510D816EBC0; Mon, 18 Sep 2023 11:58:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbjIRS6Z (ORCPT + 99 others); Mon, 18 Sep 2023 14:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjIRS6Y (ORCPT ); Mon, 18 Sep 2023 14:58:24 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FAA9111; Mon, 18 Sep 2023 11:58:17 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-68fc9e0e22eso3725491b3a.1; Mon, 18 Sep 2023 11:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695063497; x=1695668297; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=HIq/dcnUlfz9c9ZMg9REc9/bKulrunuVIS2q81WpsmA=; b=FRRbTfPlWZTj5JCf6cVkzU6C/btoGlKTDH7qt519WzjunsWS8crRO4CGourmoCqM5O ts75zeEZ9f7qzcgOGpV2OnMNTK/GEjBj5iBUOhxjRLosOP7147EOjWu62h4Q0jJuc4Fu /da2rLEPR9VetBkML9Y3Bo+Lvy3AiDIPN/pXTNHZMTps81DSYEiyGlY58mNObieXYKw5 8pcu9wliAhCi5vonpL71cqdmEYAEVeD7BtP87e+gBg69cOlWpqU4tOT0737bbPmPdHYp oaKAK4VPRQsGVycskKMFVw6g5kjNnuThcbpYJX+28qTsZl5NuS7BtIj/RqxHt5rdM/5N xJIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695063497; x=1695668297; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HIq/dcnUlfz9c9ZMg9REc9/bKulrunuVIS2q81WpsmA=; b=qf6FwQOfDvQIoeAIPj4Jb3cCBfCJFgYEN+hs/6Kq73/NdpPsLEb0sET/53Wb7zh0iE 4Gt58kW0nX8ir2zKvG9gb2fi5NizLxXYbi9ajPSTNKGVg5Vt4gAe4G7TyO8FqIUwOCpF mQePYT4O8Jigq6ffvP4uFxI+9yPuieAFXIrnod2piGL0NZFAgmBtIn+YPMJS1LbZr1q1 EQB6V+JmkgvaPhK/iYhqKVZfK1IrHbR6ThIxAUmMkwOr/tq/571bt9RWTKoD32/gjfdQ a2XEiwPpLUm82ho5lnq/XH2dg9V9BnoZ9n52fqe6krq2kbsxwBs1o2X+zxN/CHkZvTv8 B3PQ== X-Gm-Message-State: AOJu0Yy3sn0ayPxroYih/v4HWHbdXdG3dzZGwnofBx9A0fcl0wCWbdlv fBm0wEZNTiqWqFzlk6y9Rvo= X-Received: by 2002:a05:6a00:1588:b0:68c:4e22:8f78 with SMTP id u8-20020a056a00158800b0068c4e228f78mr9961940pfk.25.1695063496647; Mon, 18 Sep 2023 11:58:16 -0700 (PDT) Received: from localhost (dhcp-72-235-13-41.hawaiiantel.net. [72.235.13.41]) by smtp.gmail.com with ESMTPSA id s14-20020a63924e000000b0057825bd3448sm5327721pgn.51.2023.09.18.11.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:58:16 -0700 (PDT) Sender: Tejun Heo Date: Mon, 18 Sep 2023 08:58:15 -1000 From: Tejun Heo To: Kamalesh Babulal Cc: Zefan Li , Johannes Weiner , Tom Hromatka , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] cgroup: Avoid extra dereference in css_populate_dir() Message-ID: References: <96694dfc5f4caf4d84a740c3b18b0a456c9ff522.1694501024.git.kamalesh.babulal@oracle.com> <5870fc2459d97b2e47c5a8dc47f1a2a3837c5e03.1694501024.git.kamalesh.babulal@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5870fc2459d97b2e47c5a8dc47f1a2a3837c5e03.1694501024.git.kamalesh.babulal@oracle.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:58:26 -0700 (PDT) On Tue, Sep 12, 2023 at 12:34:35PM +0530, Kamalesh Babulal wrote: > Use css directly instead of dereferencing it from &cgroup->self, while > adding the cgroup v2 cft base and psi files in css_populate_dir(). Both > points to the same css, when css->ss is NULL, this avoids extra deferences > and makes code consistent in usage across the function. > > Signed-off-by: Kamalesh Babulal Applied to cgroup/for-6.7. Thanks. -- tejun