Message ID | 20240306182440.2003814-6-surenb@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 03A02C54E41 for <linux-mm@archiver.kernel.org>; Wed, 6 Mar 2024 18:25:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 905A96B008C; Wed, 6 Mar 2024 13:25:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 88B116B0092; Wed, 6 Mar 2024 13:25:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B7656B0093; Wed, 6 Mar 2024 13:25:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 556256B008C for <linux-mm@kvack.org>; Wed, 6 Mar 2024 13:25:00 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 68EFB1C0E52 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 18:24:59 +0000 (UTC) X-FDA: 81867440718.24.B748197 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf26.hostedemail.com (Postfix) with ESMTP id 95A03140007 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 18:24:56 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=bR8dI68U; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of 397ToZQYKCDooqnajXckkcha.Ykihejqt-iigrWYg.knc@flex--surenb.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=397ToZQYKCDooqnajXckkcha.Ykihejqt-iigrWYg.knc@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709749496; 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=/+1MAxDJuAJQyho1HAnRuoUycvJ4xPriHfVlSiFl1RY=; b=tS918kFR8A9YCszCGUsOnEm18vqMbW7U/q7VUIN3Lp8JywIl8VXzTm6YhHz1HQpxRiNtTq 6gOZiS4dnA1CtKb9i0OYhdJe6SjHQzyUqp8omdQIkZTCDfmOklgcc2tgKfAIP1jIkDxG72 Yu0itcedr8NQ/3KPZCwTVC6wnILZiAI= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=bR8dI68U; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of 397ToZQYKCDooqnajXckkcha.Ykihejqt-iigrWYg.knc@flex--surenb.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=397ToZQYKCDooqnajXckkcha.Ykihejqt-iigrWYg.knc@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709749496; a=rsa-sha256; cv=none; b=LiUwIeg6Xj9bffS0AxYKZkgdEdjcVKYbd8+40HwMfBQaRy4W+6UsGj8F1aB+OtiTPgDpQU ApBm6qITpbQSQ3OXGR3qdpWuGSyN8OxwThzlsNVemixx8qh6v515MYV/mWeAMwd65Bnbhy FTjlrfSsu92vbBor7IgkvsJFteBBa3M= Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dcc4563611cso11102887276.3 for <linux-mm@kvack.org>; Wed, 06 Mar 2024 10:24:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709749495; x=1710354295; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/+1MAxDJuAJQyho1HAnRuoUycvJ4xPriHfVlSiFl1RY=; b=bR8dI68UIIwnBXys2pVaHkBEZcDL6ISWq977Oj4N1FSofETt/IjT41yEN3DbtELRx7 PtYyzA/oVpSjqcwAzkYP/hKcAwPATVQrAKS3lj0mVlRYKsN2nJQl6ZYy6ghGatLSnyBx iZ3w7tljOF4V1z56cvl+QtMGVTjI/tracr7kXnRPwOs5ta0IqLooqEirSc/oTq2Iq5MM GQoysOVlb2Zl9dJZKFtwGaOEOyfh1UxBWD5YsjxkKbi39Ty0RyMeODsDfsi01onQ3ujJ 1sNicJtvguJwerVXBo3ZTOMrFg3DJkIkcOt8f/1X5KmyF29SZ/BblUp/xQML/GLSX8sa U9TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709749495; x=1710354295; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/+1MAxDJuAJQyho1HAnRuoUycvJ4xPriHfVlSiFl1RY=; b=Nm4pWNnXBwXsn/PHvSeR/kdBBcoPm73ADsm/9lVgO1KRKX/HA+nq6+dXJ36OE4mRWS AKau83BBSOj0d2iq5rkJZjQL0/f5IyWbK1M/TDG74bcnP96PRs+k4HIZndZ5levu1bmU SJDxBdvLPi9mOT2dFaYISksYqNIjJVfV1q4OL9IZGG8DB40vQZBaKs8yVqPfQNOh9xVB F5+00J7wq5f6+9OyT+nKocV1fxSw63Ra/CVIWLO0+EYY38dvjHzNDcRZl5znNk/xjjrg ssr5vqH2whatBmM2sFbio3TdJiFIClL8yBXNyF2foxMA/+iO2+6Cjh3cYz7ggX/1ArHd IUAg== X-Forwarded-Encrypted: i=1; AJvYcCWzXiUASmc7iDldsh5B/cJPA9d75oVPaybdQgFkQj8+qN+v4wabGWRjB9NyaK/RVlO12KuoxXRWdgI8GdSxs9xD9O0= X-Gm-Message-State: AOJu0YxARQYkPUPv121MhRL/0VvT41d/i9yw+h+zKZz48HpynLGSyO+H +pumYoz8Ue+4YPuLcpxcuaFHEYWFhVjKXS1eRqGoL+4JhTSqK9Yz6gobKYt/C/i19SlN2Oo7pvX oHg== X-Google-Smtp-Source: AGHT+IEkw8OywS5NVn7/NXWRII+MpOBoDjeHrVnBsvvZCv8Bi13QwsyESjkt49rN57nFyogg4BGvGtr41mQ= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:85f0:e3db:db05:85e2]) (user=surenb job=sendgmr) by 2002:a05:6902:1744:b0:dcf:6b50:9bd7 with SMTP id bz4-20020a056902174400b00dcf6b509bd7mr3993490ybb.7.1709749495639; Wed, 06 Mar 2024 10:24:55 -0800 (PST) Date: Wed, 6 Mar 2024 10:24:03 -0800 In-Reply-To: <20240306182440.2003814-1-surenb@google.com> Mime-Version: 1.0 References: <20240306182440.2003814-1-surenb@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240306182440.2003814-6-surenb@google.com> Subject: [PATCH v5 05/37] fs: Convert alloc_inode_sb() to a macro From: Suren Baghdasaryan <surenb@google.com> To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, 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, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, surenb@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 <viro@zeniv.linux.org.uk> Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 95A03140007 X-Stat-Signature: gdp6ifwkqf1bid6u43gaq15bt41g7ieb X-Rspam-User: X-HE-Tag: 1709749496-624737 X-HE-Meta: U2FsdGVkX18Uc/Vt/h0A4YSKd5uPGvzr0PUbEJc5p3I50X2rLzKcAl6uI9SglrjB+VzwLZX0jOMbrHDI6hD2xGBGyKRMxj7IQ0FWrkFKNQdiBn5AEwk4pKhEwid0MqIYeAYehiFBZ4ffx1mBWdQMZtI4LEd4MSSSC12RMGApXW5V43b91B5LxLmTUKVEAxF/785+wgfxx8vx2zSFu3Zpv4PAi+P02FNvI2qLiylxEi+JttlfYW0x4CR45sFFoNRq+ps4RkDHAia3IIbwv6ulPOjZe9DmOJEaMavkkHeT0wQ5u9XQRnCefnt+4399XN6FbN4nHQv9cQ0MGrQCg68mH4G/RPGj+9I3tCNe98mubQnVRCnCwVPr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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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Memory allocation profiling
|
expand
|
diff --git a/include/linux/fs.h b/include/linux/fs.h index 023f37c60709..08d8246399c3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3010,11 +3010,7 @@ int setattr_should_drop_sgid(struct mnt_idmap *idmap, * This must be used for allocating filesystems specific inodes to set * up the inode reclaim context correctly. */ -static inline void * -alloc_inode_sb(struct super_block *sb, struct kmem_cache *cache, gfp_t gfp) -{ - return kmem_cache_alloc_lru(cache, &sb->s_inode_lru, gfp); -} +#define alloc_inode_sb(_sb, _cache, _gfp) kmem_cache_alloc_lru(_cache, &_sb->s_inode_lru, _gfp) extern void __insert_inode_hash(struct inode *, unsigned long hashval); static inline void insert_inode_hash(struct inode *inode)