Message ID | 20231024134637.3120277-4-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 5F17AC07545 for <linux-mm@archiver.kernel.org>; Tue, 24 Oct 2023 13:46:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 68A326B0257; Tue, 24 Oct 2023 09:46:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 612AA6B0258; Tue, 24 Oct 2023 09:46:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48D1E6B0259; Tue, 24 Oct 2023 09:46:51 -0400 (EDT) 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 18F456B0257 for <linux-mm@kvack.org>; Tue, 24 Oct 2023 09:46:51 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E89841CB793 for <linux-mm@kvack.org>; Tue, 24 Oct 2023 13:46:50 +0000 (UTC) X-FDA: 81380480580.03.575DDF6 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf28.hostedemail.com (Postfix) with ESMTP id 36CFCC0019 for <linux-mm@kvack.org>; Tue, 24 Oct 2023 13:46:48 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=2ZDPacpr; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf28.hostedemail.com: domain of 3yMo3ZQYKCG0dfcPYMRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3yMo3ZQYKCG0dfcPYMRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698155209; 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=MWOhaEKA8zMI+Iz0e6SkNPW5Kz551oWdhyAlPdtU984=; b=GSqn93KKCfTa5garCieMoSfBoKBp/kBwQvJaCrQGnnfGUyit2agKDRPlQG1TtBTTtlxbfB xdBn3iZ99wiyQXwiLuxUM8E7qqQmuqzCzfAV/F8RDWnkVQZbc1C41JVK8JQVTuCKAqqP1Y O+rkWFgywb6o9yrYBuA3lr5WlKuiNV8= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=2ZDPacpr; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf28.hostedemail.com: domain of 3yMo3ZQYKCG0dfcPYMRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3yMo3ZQYKCG0dfcPYMRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698155209; a=rsa-sha256; cv=none; b=r95FZzaoqMqfhhUvnF9i9oyMzQcoSZM99hKSB6a1Nty0sT0Z7LeUKQ1H5d+PBvTpVZGwLg wgns/A13TCC6PwrtgdvUVmd1aSRdEtYUEMt91ejgGGI22vuVUxitOKRCjgn83sr3I7e2QQ hsfJZAoOdqrwJtQvOx7kONLIC/yqOhI= Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-5a7ed6903a6so59226927b3.2 for <linux-mm@kvack.org>; Tue, 24 Oct 2023 06:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698155208; x=1698760008; 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=MWOhaEKA8zMI+Iz0e6SkNPW5Kz551oWdhyAlPdtU984=; b=2ZDPacprvSLBUyHkUZt0OSl2wdnxAoEUNXPR3uHLfR8bpsTHSs59wZ5m8hrz1mX7kW n5F/LCJe9W0CuptGQbhoA6FzjlEzi5tE7k+l077TVUh0T7n/+BMkxcDbQZjRaF0pGxHI wqmqNNQUTGmPnisPUL4Wgctxn8+e0KZZ7PiF3oAJM1BtDMQdEGTYBmUGW8lY4SkRW4Fd d1bw6eBpwgUEnPUA8Uz68bh885ab6aJOJjvd4NfmYLerldGgccxAHH5vMkwLcjsZwb9o swlOnf50O5PkBrkLeXTHwwHkSfUVeuuH0T6Cu6kjZbmgi5X1gPJ6b9sgdOJFTvHDTRwZ lpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698155208; x=1698760008; 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=MWOhaEKA8zMI+Iz0e6SkNPW5Kz551oWdhyAlPdtU984=; b=HAamCZOdSjJyGFbnJQB/IJlUGZ6oWpCn+a9J0m47mqCHWpsajZfELxpi+Hy4T5nOOE 7/57rdRIjPhxXdAspzOiG1yN7sIKJ1pxTzRONxt4NnyFP2DpQUcrZwYp4J9VaKniX4qL eYwatxtZNTnXJ6XbyCmBFVBGO4fuPOD6s9ac5wAgHnOfaCcTB4QKct5Mb542epxvnwYZ 5cHO3a7SLw5/upBlTZBdG9VnixHLFeRLFoBsrIZ3kOfPiHUmqn0OVyBnflwIxyajY+RG YSEULjxssCN9/N0euVHlmJTkFAi7hqRWczGRrOEuWzl9tkVJ7PZYHAzgTN12A4WED4Mv zCEg== X-Gm-Message-State: AOJu0YylikmUC4bUXKspmfYQiBGmJkMy38reyjYgBIlqRkHvcnWckMeR kSFUoq1jNvR0Gbb5q09FkZ9i6L/vZbg= X-Google-Smtp-Source: AGHT+IGS8NlUfJRUa0CiIFG8N+DG1BCVzQogfv9Ui1pQm5p1SwS7Eeeej+mjL+3fA2TwJ+bOdBMbqGXulW0= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:45ba:3318:d7a5:336a]) (user=surenb job=sendgmr) by 2002:a25:b951:0:b0:da0:1ba4:6fa2 with SMTP id s17-20020a25b951000000b00da01ba46fa2mr82321ybm.4.1698155208197; Tue, 24 Oct 2023 06:46:48 -0700 (PDT) Date: Tue, 24 Oct 2023 06:46:00 -0700 In-Reply-To: <20231024134637.3120277-1-surenb@google.com> Mime-Version: 1.0 References: <20231024134637.3120277-1-surenb@google.com> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog Message-ID: <20231024134637.3120277-4-surenb@google.com> Subject: [PATCH v2 03/39] 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, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, ldufour@linux.ibm.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, 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, 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-Queue-Id: 36CFCC0019 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: wgduum9dzmbzfexgmgdrpuoxis8x5buc X-HE-Tag: 1698155208-974326 X-HE-Meta: U2FsdGVkX18HPPFV6dz1Xh23C+OxPB3CV3VV2xQJ0M1C/tJw7vUOWEW3SKJWdxjWkjJid1QUz6FsXxsE2tz1SWthwKsk/qgM7o/1u+eUMjLD+hR/wgkpyEi6eeG4KIyXNsSWW0Ui7abQTh74EFs+URMC7/w1d8Wbtwz62wKA7mra4bajSHy003702cxCADCXkXANmOJ817weShCCOaZ7l00p0dvqxo5N0J5a4mvkVtZhz7Qcp6tSN808qKn792Mio5TGOxSwdsSXLmtxZSiS8BQo7Sma+zIL6/E/l24l5ExeQxwkEsg7tVMv17Qi42whmy4obc68DYzdEqnx5dX8t52shfQWEbRD17IhUG3ccMCn1FoE9OvdMMS3lTnu3SsySM6tyg5bFr4tJTiemjjVC9vxJJ1U04YiD2HiUieFtzOP/0E7ROjwKD0uK8lyve+pQSiG0PefOU7FiqzKJtFTpg8Afk7Do7wt2bQlizpNEEswIAkaWheIaSQ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XZDW1cT1HeClSYg7gnGg4TwyNHgonM7CgaBtVtEkIuVDXbPeomHVHcDMJr6GVpxXWkP8khvFaXSCQVjCklBSpf/VOayB7GO+EoFyIIaGVV3nIjvhS8/SYUfkkbgYvWNgEufh8977nt6yHIhfXsXPm7dBrgXiYjnPHOMQfLTBvvoGcvwjliCYEOHiw3TLIPqW1Rpj9tQPf7r524ihmI4FLZTUzA== X-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 4a40823c3c67..c545b1839e96 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2862,11 +2862,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)