Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1039931pxb; Fri, 13 Aug 2021 12:01:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1pmNol3wqxVRBtC+8xD/68chAcEd8JH34Oz93p2QqpVBJifes9ZXvmya29FlyqwWREp42 X-Received: by 2002:a05:6402:2029:: with SMTP id ay9mr2933383edb.236.1628881298381; Fri, 13 Aug 2021 12:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628881298; cv=none; d=google.com; s=arc-20160816; b=TrWA8z3M4d6MJfxMNV0zg+LTpWd+iTklsbCGOEshnZ0myEHMCCKyQStLC2MWgSepuj ETaJvzI9Y2ZAutO9rWnwWIpjSSyV/dyUM1nfiZA6YlzX1owH93ADJmiaa/3K8rAi0t1p ANUr1o5aTe7LsFi5+a7/yQ4vQHW1A0nE8FtoDsxFTt2OoCtGt4ucVzOrk53xhEUWjnC+ zHJFaTpVHX15h1U2+g4EF3aP2hH15XJga2svouHQYRlpV/cS1u/s/Nu3+cAhcdp+wULj bpQ8iOPcBlSrBOtjgSpE0dE5u3n256XkodOv6S39X/7nw3gXSNC+fs0HIB3Coj6dR2/g N1Lg== 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:dkim-signature; bh=n0UYFCDfn/6EPWQxCxZcMRZGDBC1ig7t4FOClsfmIzs=; b=gC+seU51tM5F6t2pd3L3K0m/NVFwMiowjEQWUvFozxLVzJ4jcdAuoCCC7pnnJvfmWw vOhfxSQ7R2Nk0EWdNbpgx6ns9IO1qDV4p1qhm14PX8AwIBbDwd5V3Vm2nsaP8pROcX5F DfinY6r7TVaj5Q3yIe3S16p+DhDYUgCivexGx/upU3x1uVVcEi8rLae/GONk1Z4GtPcw Vj23FN+3belPMY/CDf7PT116tNaiLRboD1s9b1hLTHZ01SztBkLmxwr6M3+fhZ9DTFYN c08VDdarGZi2t+iZDOJBRvBUciM13/2LcQ8KmK3+xTDdgbTXe69eeEWmf/FimQZyyWOZ +kfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rW+90qbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si2269088ejd.352.2021.08.13.12.01.12; Fri, 13 Aug 2021 12:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rW+90qbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbhHMS6D (ORCPT + 99 others); Fri, 13 Aug 2021 14:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbhHMS6B (ORCPT ); Fri, 13 Aug 2021 14:58:01 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBF9C061756; Fri, 13 Aug 2021 11:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=n0UYFCDfn/6EPWQxCxZcMRZGDBC1ig7t4FOClsfmIzs=; b=rW+90qbnrmWgb2k22pBJY1LrTl jzfGsbj5b5h/mRwDC/MoMZR4VlwW/j4l/xA93697kYfOtilnQbg1A8oCNMl+DwNUoE+f2S8ilfDTM c+4Vf9+pKxgClznbZg+rZbIkuzaSiE1umQI9mL4cSmVXdQCtDCkni9eJ+DPUBDqa4nq73fmFfPMM4 n3TzbOD58Env3CuCXuPttnqaJwk9CfAtEtCz5/sT7Q1FIkfQh7LanDbrgSqLd1n7cGzkdDXNxtE/4 fqZmvsDdp05jgrn3NawXLYWDrECWlHpXwuIJsGA8FZi9srrakhVtLo80NVIr1ZytvbJn2H6LdH3cJ 3sNjNXHA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEcMG-00Fz7Y-L1; Fri, 13 Aug 2021 18:56:51 +0000 Date: Fri, 13 Aug 2021 19:56:44 +0100 From: Matthew Wilcox To: David Howells Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Michal Hocko , Johannes Weiner , Christoph Hellwig Subject: Re: [PATCH v14 035/138] mm/memcg: Use the node id in mem_cgroup_update_tree() Message-ID: References: <20210715033704.692967-36-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> <1809568.1628626012@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1809568.1628626012@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 09:06:52PM +0100, David Howells wrote: > Matthew Wilcox (Oracle) wrote: > > > By using the node id in mem_cgroup_update_tree(), we can delete > > soft_limit_tree_from_page() and mem_cgroup_page_nodeinfo(). Saves 42 > > bytes of kernel text on my config. > > > > Signed-off-by: Matthew Wilcox (Oracle) > > Acked-by: Michal Hocko > > Acked-by: Johannes Weiner > > Reviewed-by: Christoph Hellwig > > Reviewed-by: David Howells > > Though I wonder if: > > > - mz = mem_cgroup_page_nodeinfo(memcg, page); > > + mz = memcg->nodeinfo[nid]; > > should still have some sort of wrapper function. I was asked to remove the wrapper function as it didn't provide enough utility to warrant the indirection.