Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp768508lqp; Thu, 21 Mar 2024 15:18:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLlF8tni/kbsehmGuqLrLiglYBz4AOhMGrOs1A+qn27L/zy0R6rm3vh5EaJoyQnC2cVGjDKCzgtDpx8tQbRavkOnx2h5DF63sk9CUHlQ== X-Google-Smtp-Source: AGHT+IEl7tyxaVlTWSs0/lDMVViaR3TqiS4UO6M0KRT0f5JcgV/PyBtfRZm8ykuu5e8D6ZJokxdR X-Received: by 2002:a17:902:e891:b0:1df:f675:5ff5 with SMTP id w17-20020a170902e89100b001dff6755ff5mr380501plg.18.1711059486474; Thu, 21 Mar 2024 15:18:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711059486; cv=pass; d=google.com; s=arc-20160816; b=LQ0CnhWWWtcPnENKCPevx+qTFWFrGAWfMzg0YRSehh0B7Wf0wKDYK9UdtTxRRYdgjd Gn5+Dor6wdXJrGzxefGFB23igEL2l8LkIsmUjW51PCGkaO8joPatcYQl6GjJptWaCh+P JNLOA1V+2k5zXHCde0wCIL5dmF1HIpjESQjkVggycGO8JmqJLNH8spY/h2u6BEqQVoum fXCWXulI0iCb9fA6TygbJzjveXmU3P2YocS1GBIXm92AdMOAYSeoh9t+s96OVASBdHbd Wixl//GcH/eUfczJgoTgV9+eEDsHCDOMu4bXVol+emvaUWRMZc6lzfZvuVuYP40JeJwj VQQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=Avwu9Obvo7iLXBxmizf/EO08qQLthSdSW59GBeW8H+I=; fh=Q8iXvLX7AMaL15JHtP679LkEjZAcP9VlW5xkTCDgguY=; b=p4SQrLStgpCr8oLwIqqfgMpBpJ+60lXxvyziQeXdroOB0KCdSUvzKoX97qPkifgiZ4 7PF6npEm2cyKY1LUw0mgddbWP/HYGwHFSB5veiCNxnl3AYor3prGP8s5ehz7lWU+eP4N +6mU+kk2V+CXraJme/QVvuPvYN9oWpdUKc7UuQcwnvBg085HteeTfv39SzfJXmqqzMbz jfHSnijYTxrIOlm2aRlGFQ3gDL2HH+4CU/5AoiwpdgHjxKHhQBiKUP4kmgsahC1u2LE0 AJCoMNEuf1hXHA5yB7LYFfAmLNCk6qRHckAuJMnMjluZUhEr1fWoXYfv7GOMT7QiljsV wtGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FZysDbxQ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-110748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 1-20020a170902ee4100b001d96401fbfcsi513626plo.521.2024.03.21.15.18.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 15:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FZysDbxQ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-110748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 F34A2B221F3 for ; Thu, 21 Mar 2024 22:17:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 634701369B2; Thu, 21 Mar 2024 22:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="FZysDbxQ" Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 B45CF136676 for ; Thu, 21 Mar 2024 22:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711059459; cv=none; b=Y3d6D383nH7bIGnUQMynFBvGklvUVl87Oar0VYkbGtyNLcWb2RkLyO27vCNm0+RSMDS+d2R8bwqPo6CpLL5YVXTFHn3xgSVADvl7F/M7Fi9crXIIF4E0nYHWrs/nrmvXWUorLk9Z+/v1w+jDT5xB4pCxFvAsaVdcK1H9HWblRyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711059459; c=relaxed/simple; bh=48MDU/nc47hzkUWjchZtFQewyGLXSQIKOvEvF3GhbhU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PcPW0pGRk9wZ18wDHC+oLVoFDvKKx7jh06ieztPruME/13UjfOqkvEVT8DTxPOKGZBLuJPo1wYBowXtvhnswZwy99LPR4adIyKphIAOqbYrc7FpU1rxf53TCpUfe0MWOVfC1hnyHp7ddsmgel+L3eDx55GxawgfAOz5L+TvDERQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=FZysDbxQ; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 21 Mar 2024 18:17:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1711059455; 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=Avwu9Obvo7iLXBxmizf/EO08qQLthSdSW59GBeW8H+I=; b=FZysDbxQhjIXqR1pi+xqtUgFMzj7/eEwMfqFXVNrKP4hKoq2eMyg+mr0CCyz9L7KqFOgHR p5O/ufNLq1uDGvJZh6zage2q2y2AKKbqhiaE8rWYbulPbyHbczbhEbHNktWz0RHQl+5yfX htak4lBJXiAjgjdWctvpqD6B01G3FgE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Andrew Morton 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: References: <20240321163705.3067592-1-surenb@google.com> <20240321163705.3067592-6-surenb@google.com> <20240321133147.6d05af5744f9d4da88234fb4@linux-foundation.org> <20240321150908.48283ba55a6c786dee273ec3@linux-foundation.org> 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-Disposition: inline In-Reply-To: <20240321150908.48283ba55a6c786dee273ec3@linux-foundation.org> X-Migadu-Flow: FLOW_OUT On Thu, Mar 21, 2024 at 03:09:08PM -0700, Andrew Morton wrote: > 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... This is different, though - even if a function is inlined in multiple places there's only going to be one instance of a static var defined within that function.