Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp766065lqp; Thu, 21 Mar 2024 15:12:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU44I8bReBJM/9sZJzPRp8vjLIxcUi6LayGZ1FlSOx8DT5SJeEJr8Iqdl2OsH2nz8WlWUykE6Iu7XWsM8MpfovQU5/NssTJWqf2Xj8Y7g== X-Google-Smtp-Source: AGHT+IFvV9uLO1/jZPeEtj6wLCXnGn7KLTf+OuW7ljaVw7b0QmS9j2UCMrlMOV4264jhGQtq+9C5 X-Received: by 2002:a17:90b:3a85:b0:2a0:1799:6203 with SMTP id om5-20020a17090b3a8500b002a017996203mr423520pjb.10.1711059140487; Thu, 21 Mar 2024 15:12:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711059140; cv=pass; d=google.com; s=arc-20160816; b=A1gZY0ITtsOGjFgEJPo1wk8EBMcddfQJRJANvYitWMa/MxprGszZFIwb+qwnv8q8oo toq4WBzJSRFt/SGzIi+KQmLlLkIVU3ureqZr8QFpgZGFmLPm3LgEbKGKlPFOfl0vMNnt ZHx87j2jFQ/C1Kndyf4B/vnW0ueNbBRfSachje1iwyRYAdf/KUxyI7+Ff1S72eNTGV6t Z/ZiJ99/8KL1Qevu6h6lFWHRDOYwpSQd14wcgsDHLGL/ZB83SPlq2amv4VEePc6G2XhJ +StBkHeBWJ4xhc7kJXf+IMKdVwRlNrdaJ9MxsvQSOx5K4Nf7oWbXupNrXdZB63b/9vbW AzrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HRQb5YRTVlNIAXd0VIxCSMS0uNvlXeeI/wipFWf3bZA=; fh=tq7onE5PvlRzb65pa9W5SWrr92xW5Gbh89TEHB7HKjs=; b=vaNLXSTht2TI/w6aa3KNMU05v617QWJX3YCGWwGkc43SiZ4uLH9DnI9efZryccfIJ0 3jjkXil0YFYfl26BczHoAUPWNtAkfmhSHRuW6sJ3AtGOgmf6z4pxpOipuna9qZOIABE7 yZnmmEf08CQMsJQwXYWpcfShDxOPS2QuFohi1uDi1HSYGfUB8AJKuRTemwLzbdeW6O6C hjvg/dfQbhNqLVpNQHqg26Pqihr317NVqfYCuK9fHuhJ4iBffdCCVraC1UNP5U7/Tkkx +th75ipbFh7nmBDXcPxhXahePHbfMzgtIfBJSChKynRCgkY0DxqUgcymMyukzEYf5nPe W4Hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=y9CgARli; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-110739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110739-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y187-20020a638ac4000000b0058974d3c296si611099pgd.815.2024.03.21.15.12.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 15:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=y9CgARli; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-110739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110739-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 74BFAB23702 for ; Thu, 21 Mar 2024 22:11:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22E0813774F; Thu, 21 Mar 2024 22:09:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="y9CgARli" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AFB1134CC8; Thu, 21 Mar 2024 22:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711058951; cv=none; b=ksVdBVbhGRJbtkwAqbHt+hcesDpm3NLwxjdgPWh/EId8AVV6rDIqLZdIUwYKYLfYGvTG2ixHECLcnAhmOrVilTkX6453vgP16hKJcEoVJpNMocVowfHyqUWw6eigBs0bRJEvGQ7DGZ78UOagOk2f9mxxGozLxZTnlzkvX7ZEc3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711058951; c=relaxed/simple; bh=VhxyuJAKDJdilw9zvcdHtFTt3LX+RMm+Bp/Q9DPpRW4=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=DtwqtAUayvREvFqiaiKsh6+Uys6SaIEr1JTJtcvKFTsnBvIONC05J8guxtXG0sZn756gwNbRhj3b/L8d80kkRyZks1LIOQz9ZWT0OavB0UKLtOVsynaY9XVtAxhqsMmiBtw3fM1wyPenBPYgFVx+rpT+6vNnAcI6rRYGtPL8rH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=y9CgARli; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C8F3C433F1; Thu, 21 Mar 2024 22:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1711058950; bh=VhxyuJAKDJdilw9zvcdHtFTt3LX+RMm+Bp/Q9DPpRW4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=y9CgARliGxUh9un0RWq77BvUsv8icetsXjNRrb37j5AgzbQBVxWvl7EmT5MW08zRV KzT97X78s64BZpndmQKS2jPFO2FuiZ8PVKbsoWOrRh5ggd9KkdNWmNHqmu7KFgTu0n YLx1MsVpgD+D82vQMtv34P1DpdyVeCQmlYlP4sz4= Date: Thu, 21 Mar 2024 15:09:08 -0700 From: Andrew Morton To: Kent Overstreet Cc: Suren Baghdasaryan , mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org, Alexander Viro Subject: Re: [PATCH v6 05/37] fs: Convert alloc_inode_sb() to a macro Message-Id: <20240321150908.48283ba55a6c786dee273ec3@linux-foundation.org> In-Reply-To: References: <20240321163705.3067592-1-surenb@google.com> <20240321163705.3067592-6-surenb@google.com> <20240321133147.6d05af5744f9d4da88234fb4@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 21 Mar 2024 17:15:39 -0400 Kent Overstreet wrote: > On Thu, Mar 21, 2024 at 01:31:47PM -0700, Andrew Morton wrote: > > On Thu, 21 Mar 2024 09:36:27 -0700 Suren Baghdasaryan wrote: > > > > > From: Kent Overstreet > > > > > > We're introducing alloc tagging, which tracks memory allocations by > > > callsite. Converting alloc_inode_sb() to a macro means allocations will > > > be tracked by its caller, which is a bit more useful. > > > > I'd have thought that there would be many similar > > inlines-which-allocate-memory. Such as, I dunno, jbd2_alloc_inode(). > > Do we have to go converting things to macros as people report > > misleading or less useful results, or is there some more general > > solution to this? > > No, this is just what we have to do. Well, this is something we strike in other contexts - kallsyms gives us an inlined function and it's rarely what we wanted. I think kallsyms has all the data which is needed to fix this - how hard can it be to figure out that a particular function address lies within an outer function? I haven't looked...