From patchwork Wed Sep 4 10:21:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 13790354 Return-Path: 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 765E7CD3431 for ; Wed, 4 Sep 2024 10:21:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 05D316B0303; Wed, 4 Sep 2024 06:21:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 00B076B0304; Wed, 4 Sep 2024 06:21:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DABC46B0306; Wed, 4 Sep 2024 06:21:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B7CF46B0303 for ; Wed, 4 Sep 2024 06:21:58 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 32AD7A0F8F for ; Wed, 4 Sep 2024 10:21:58 +0000 (UTC) X-FDA: 82526665116.02.906AC57 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id 65A891A0007 for ; Wed, 4 Sep 2024 10:21:56 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pVRvFeeI; spf=pass (imf19.hostedemail.com: domain of brauner@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=brauner@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725445268; a=rsa-sha256; cv=none; b=YQUNAGm8pPkLdSM2mx9zdwG/57OcOw1OAyzj+r9+MxtIlOYpSbuWD7yQxyaoBNirz/H8gX 04gvwM9Rktg7i2hsRvSwoceeCh5ctK7PgU/HXEaFShwPOLqrBfYf5/q8apewtkBUPwaU4e RFCmt977LNpq3ziNzJ6hNue6fkBSgLI= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pVRvFeeI; spf=pass (imf19.hostedemail.com: domain of brauner@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=brauner@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725445268; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=G4ZElHDl2PeTAu9EplblbOqMGtct6qvWga7h7ea/v+0=; b=DBkf7EdcdDjh5TV0fMYIC21zMI17XJuyIT0/3fqdqRREHCCManiNuUPSWYCh96/0B9Bk56 P5LdUX/PEk9UP0g2iZoTa8A+ERPFiI/EMW8pTlX9qNgwsMiBJMbrisyT0OQk1Zu+xUadgG 1rBMnfKyG3XQhqCAbISu5wUcCSXIMb0= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 299E05C5467; Wed, 4 Sep 2024 10:21:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0CC5C4CEC2; Wed, 4 Sep 2024 10:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725445315; bh=aZEAASsBiFk/RgRLba541LPDxJ17oriKgsD3TIAIOy8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=pVRvFeeIXH04mtBi0pL304wNLzScNm6KRBcMNa+Kk3rJjFcQUjqct+CJhwG66KIy5 MzkAx0bUoO3qqI85wSK+22x/YC0YPxsIIS4OrO7zFh5MgezfDiawCwkChw8Mn57Orf aOmdR4bdcn2J0YD/lY6MIbAP76giGif1VTmMlO65s77Z25UQ3eMrUb6jE8Z0SL1H1l Oc9LHKBhX5vamFvnc/buanj7jLBG4pMRdENbAkzyWqWkeYy7kLrjmiDvc90WqZpeGB a5XITsPViOqtbzhFKuIOgNpN7kfd1fvQhpIcYhQigq7u81tCFyq281BXUhqi8zMhoU MkMdBVI9gWAQg== From: Christian Brauner Date: Wed, 04 Sep 2024 12:21:06 +0200 Subject: [PATCH v3 01/17] slab: s/__kmem_cache_create/do_kmem_cache_create/g MIME-Version: 1.0 Message-Id: <20240904-work-kmem_cache_args-v3-1-05db2179a8c2@kernel.org> References: <20240904-work-kmem_cache_args-v3-0-05db2179a8c2@kernel.org> In-Reply-To: <20240904-work-kmem_cache_args-v3-0-05db2179a8c2@kernel.org> To: Vlastimil Babka , Jens Axboe , Jann Horn , Linus Torvalds , Mike Rapoport Cc: Kees Cook , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christian Brauner X-Mailer: b4 0.15-dev-37811 X-Developer-Signature: v=1; a=openpgp-sha256; l=2022; i=brauner@kernel.org; h=from:subject:message-id; bh=aZEAASsBiFk/RgRLba541LPDxJ17oriKgsD3TIAIOy8=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaTdMNm5xyytO7rTxql9L3d59dyG0jNp6epyKrNMn79vu jrrKGNWRykLgxgXg6yYIotDu0m43HKeis1GmRowc1iZQIYwcHEKwES6Whj+e89ZwziJweJX1ePQ /xlPfa8++PKG5Sfj1j8JW+PFfyYIrWNkuPyp5eJFc4m2ZcpXXhxkPDL3fYi/R09dzyxzxQZ+7eR gDgA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 X-Stat-Signature: jcbkwrxbmn5tt6cswygige9px5dsefzs X-Rspamd-Queue-Id: 65A891A0007 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1725445316-802193 X-HE-Meta: U2FsdGVkX1/h5IDdF6DSFD4te9i0zniQQ+ovf2zZlhbAxMhBS562A4+et9LcjsN/JTBS0uFhVxgwiAH9BDdH0lpRPgFcbrhxxFnFZeBp9hGCPDudQ4bmPV1eWYXW4Hygmv0dPkLZu5dZ6X3Xv2iSlSQDjppuhK9EwDff0fx1KMsweRuQEIUSqkhocGO40oQ4jqUv9YtwXrbptmS5tQc9ZUATz7OYSGru4u10F3e1+N57+avAQoOrTre8sTUct7TmOMwmHpZ8B5EC4F8OwQTXpY/o41Ple5vfRNe7ThD3jTcJsh0AwHVSV4OPZ06MWsuvjZfwnoTcJ1BvQu53zySVt3XziH0GWNdZJqfFEdJqJ/CdsBYqqKaGFGyHXVlMmtN9AHBz7oD46vhruHawB6MNRSuu7eOgtBoK3SHz6JxxIHSl77/qZgTZuIsMY6w8lT8DsGH1NVGNZwl62b6xMJIqmQDzhLY9Gba3L5VvQ5WNrIuu727E5LsiXPu8dYyhdXP17Ff9sNq6aEd9Gy1d2XUdEeZdkUMwbC6K//B1eW023ppmYoWAVU4KoJkhvB/bKpG9vQVWX9+oirDDL6CPy17zDmFvWHL4gJwc2Gs8nsewpV0ExVCNvp/v53HCi5cg8IDw+SryO76AFdgBhDWRQu+RMKj7HiLHHejK0FS4dt8U3ZPyWBIUHcQuPdiy/xnaoQeBMybOt/7QkDR5+qxU0MBg50tJF7n9R/0ROWaEh+b0b+xwhG0kWhwRD/jdZPMcdcql8k72hizS/yDy1OvmyprBElEIXDv/xlIGmqcyZPvch0TXaW0D4aSwu8PoWpMkiz6HuIjyLvJplqbd0dk3nyhZwSkAsidx6ofdIG3XnwFQRofXjf1NwVz+wdBEge9PUpNrUyRDFXlmRTD+lA1ThWmkq9Fdk4iLBENm9KzFIqWchciu6cZ7fAUK270s4LqosXMpeaNudf/35WGZVKVV2yk wnocgmqG +Jodts57K2lGWNxKes0BvsBdb+1/bc3yVK8TEjfQU/nm8ERY7/8y4xHnflJPPyVLfH7oIqpiaKyPcnmMBdi4kTTPD9OfTDWHyf13p1rr08C7v/cc8DB+xq6DT9Ct/FxUcBeLT29vP//V2zuCLpewc6Iq0CxvmJFLCCXW9a5RLDSgyjIlS347gGRlPfKDQLYDLOynjsjZjtEFAhirDmMDQPEypUVt7i+3KB/EUeBNq5Fyq7eczDekyIwGktfQPaKOcHZpcfwd0q2X2QsJmFpdZHnhGWqP3A57JukarE3vKXZudfUN7Y3GLxFYW3JH5e7kHj1wL0Pb7gYqrG1St3rQtByLMyLLiEjxfoE/+5Bkr5PbU7JG8+/XmOfssLSyxO4IBhOaThrGbSce357xa1kExYxSXp32NeUhSlQiL 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: List-Subscribe: List-Unsubscribe: Free up reusing the double-underscore variant for follow-up patches. Reviewed-by: Mike Rapoport (Microsoft) Reviewed-by: Vlastimil Babka Signed-off-by: Christian Brauner --- mm/slab.h | 2 +- mm/slab_common.c | 4 ++-- mm/slub.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/slab.h b/mm/slab.h index a6051385186e..684bb48c4f39 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -424,7 +424,7 @@ kmalloc_slab(size_t size, kmem_buckets *b, gfp_t flags, unsigned long caller) gfp_t kmalloc_fix_flags(gfp_t flags); /* Functions provided by the slab allocators */ -int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags); +int do_kmem_cache_create(struct kmem_cache *, slab_flags_t flags); void __init kmem_cache_init(void); extern void create_boot_cache(struct kmem_cache *, const char *name, diff --git a/mm/slab_common.c b/mm/slab_common.c index 95db3702f8d6..91e0e36e4379 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -234,7 +234,7 @@ static struct kmem_cache *create_cache(const char *name, s->useroffset = useroffset; s->usersize = usersize; #endif - err = __kmem_cache_create(s, flags); + err = do_kmem_cache_create(s, flags); if (err) goto out_free_cache; @@ -778,7 +778,7 @@ void __init create_boot_cache(struct kmem_cache *s, const char *name, s->usersize = usersize; #endif - err = __kmem_cache_create(s, flags); + err = do_kmem_cache_create(s, flags); if (err) panic("Creation of kmalloc slab %s size=%u failed. Reason %d\n", diff --git a/mm/slub.c b/mm/slub.c index 9aa5da1e8e27..23d9d783ff26 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5902,7 +5902,7 @@ __kmem_cache_alias(const char *name, unsigned int size, unsigned int align, return s; } -int __kmem_cache_create(struct kmem_cache *s, slab_flags_t flags) +int do_kmem_cache_create(struct kmem_cache *s, slab_flags_t flags) { int err;