From patchwork Tue Sep 3 14:20:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 13788783 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 AE5C9CD3439 for ; Tue, 3 Sep 2024 14:22:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C6E18D0177; Tue, 3 Sep 2024 10:22:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3767F8D0151; Tue, 3 Sep 2024 10:22:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F0938D0177; Tue, 3 Sep 2024 10:22:29 -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 EF87B8D0151 for ; Tue, 3 Sep 2024 10:22:28 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id A51A58047A for ; Tue, 3 Sep 2024 14:22:28 +0000 (UTC) X-FDA: 82523642376.07.82676E6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id D6550A0012 for ; Tue, 3 Sep 2024 14:22:26 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=j7WjnjG6; spf=pass (imf25.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=1725373251; 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=qA1kYPvS3ryvpXACw9tYGAdC6w/y1wsMU9Gj9O3qCaU=; b=JYE8c9uM+uFq57o7UPaPjm6WcbIv9xC96TNaIqo5u3nTi53MhY53HoUZmVjilJj7ynd5b0 Lwx+43LPT73RUpexTrSkelMi8GWsu0BN+/4Wqb2Ka3dLvnb8pa4KoSfFq/i7R4UCzrtSo8 3Z9EpyBNclFilGZhb3Pk6A6eY9NHCAs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725373251; a=rsa-sha256; cv=none; b=J9PBmyuvZhN52PF1YQumpWOKIT2hfUWB/L1fE+BxuoipO5X8A2FxuIn3q/9kCZrWjdBIXD nmMQv5XDSAirnIpFUkPQ3gASfBirfs5gTN6TisZwgWzTPT2lKL7hkHLMSD4J9PWNk/27H5 DiR5d19i+TbdKy/pkEHrPalgy2vUhA4= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=j7WjnjG6; spf=pass (imf25.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 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4EA9E5C5871; Tue, 3 Sep 2024 14:22:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DA9EC4CEC8; Tue, 3 Sep 2024 14:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725373345; bh=aQiIKK7aypFaSSN7lgRJDvRI7/Ip5hPvhqIbIRsPc90=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=j7WjnjG6DU4tzE1BuBWHzDqxuj8IxdxSm8g0U15AEnbMBM8wttB1Y3G09ev5GLai5 W2xu715Lw9oCHM2xxc3zKsxgwCJlvcnbklI8orrNlXFMpmDE+/+EIkXe2HdsgB2AUw 7w5NIffNI05CLpefEIII4pV9TAVZt8+LH7bvSgW2lsoZFWpV/vjxSr8pH3VqHi15qD cQeUJebohkTHwEIHi5xUjNX8zFobHPdwFYu42KnOQBePw5MBtvUmDOOV8oi62Mo/Vk oziANUL3cw4Sh1Czk/9uSWtD9W51cHqOWLNO+FLe98JB/bZZtu4tHx/HPWN5Wnm3XP LAQw2zTFSQMBQ== From: Christian Brauner Date: Tue, 03 Sep 2024 16:20:42 +0200 Subject: [PATCH v2 01/15] sl*b: s/__kmem_cache_create/do_kmem_cache_create/g MIME-Version: 1.0 Message-Id: <20240903-work-kmem_cache_args-v2-1-76f97e9a4560@kernel.org> References: <20240903-work-kmem_cache_args-v2-0-76f97e9a4560@kernel.org> In-Reply-To: <20240903-work-kmem_cache_args-v2-0-76f97e9a4560@kernel.org> To: Vlastimil Babka , Jens Axboe , Jann Horn , Linus Torvalds , Mike Rapoport Cc: 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=1917; i=brauner@kernel.org; h=from:subject:message-id; bh=aQiIKK7aypFaSSN7lgRJDvRI7/Ip5hPvhqIbIRsPc90=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaRdl55994PxvuwGq4XPVzybc53nc+GFXI8vs3/9VhDNM exdODGMt6OUhUGMi0FWTJHFod0kXG45T8Vmo0wNmDmsTCBDGLg4BWAidu8Z/mn7pr9d4vP/0D4O ibK9/vqX9kjKvtg1wTfqWyoXZ/XLma6MDPcTjRjfBf0+qqr9bb7gudfOv1ayefxlvdyk9OXzX5W HSWwA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 X-Stat-Signature: nr8p7en9b3ybr34esdu7g3545qfbut65 X-Rspamd-Queue-Id: D6550A0012 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1725373346-5860 X-HE-Meta: U2FsdGVkX19CHfGQz4j5/8MkY56gnDdi294B0Th7SNTsXbXRjBTKBgGVf1HYshHnhMArOFax/pJZjz/L7iEwFlAeQF04d49qgOLZxB5C6OKpRrj9p5T6MVp/LNfhSsf8C9e/29msOlYwuLbLD4hE8fW91m1x2y7QuT6Oyki2l+9v68JT+RDMgv5QzaxL32xu8PPihEp/wY2paZsdHcpITsaoykVfZjI9hdE3LvjH45OF/kXVIE/32Jb6YT8CTZre4N/Fm3FK8m8loM3iery4knUP0W0+s4tCXeGeLVfY46gkxbGTU/XguVV4ETkzPw2CEi8IrYbMFRIN/k7pq5Pf0prOoLiDkGQDg/MmSWOacIPxUfEOZA7VG9cpVsKnQelQ5OcJlaC1zSxLwf5DsfOaimiCo0ekYbr28cx0uYmi8NKkOQeIrpEmgsXF7RXmZxx/5u7lF4xDySsisRn3LGJLSK7zSTaELhk8yvCS9aNUAdkAGUWPYwYf+oqGWjl6gwWq2VdsEEdWv5EdLixJLk+sSIr+WyYDFlT+3OW4htdzfTMP6bZZJagQk/hTTtOqfiehhmD2YHp5GL22HTp+Yi87GN8W/Lio5vOf7YModeiyHew20zcI23iY4mI79p/OvxuM6Dt128MNk/XKKt/xTVNgqPIw1dYlJv9UE+R7DYUBNkUrG4VD0xGN5BhiJW52ak9g3AX412J4njEJV34561MdGwXWQo0hZzfx/Hlh4BhWyWs6fkD+OUwt9s38/xQ4w2L+WBc/eUY1IEdhQl6FQzpgGYkLyNcQ0/b/5t1CnPbxkAh38w7+l2tL5kZRYd4w9qjJ6wIZAudLO4yauWqM1JkbqQ+Q063VK1FqtgKI3pihYGzhkWdW/bKANSsb6vmomFrCTmdHrYQdmULx+F1FjPTCIGJN74K9EhxNh4c55P50eiSfmyQBuzoUkzGnGRHskEa0xVguXwL05uypTqJfvkF hdCMMuLw a8ZwZYnuWhuhsLsMx59K43u6466Q4g7RgEUakRjwOBjnXJiF0/aUyYLSpnIi2RlZTe+KUdsCSaGoHq77ZAMwm31CvqgMSdSIqDOtuFd0TayBlGzf1HQzl7Ilz2ppnko4yPxBN4YGzu1RJM9wlhhwbSfm0kIJdyhjqEfiqjHGSAA5cppyjvFZw2m4xtgRzT8evSY/TPfKQlS6T2lph7H6Qp6OUBNB49P7RLCxOibYLMHXjqEThpVVzhmAKs07lcjpzF1v9cvhvcHoJWTz/IkBXhCe/MpANZPWVxmfi3GfrcOgUzwc3Z8/HnEIYpX+MK/yQoiHcSqPrD+LX8zPaeeQvQHQ/Hg== 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. Signed-off-by: Christian Brauner Reviewed-by: Mike Rapoport (Microsoft) --- 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;