From patchwork Tue Aug 27 15:59: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: 13779778 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 DB890C5472F for ; Tue, 27 Aug 2024 16:07:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 645D96B0093; Tue, 27 Aug 2024 12:07:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F5BF6B0095; Tue, 27 Aug 2024 12:07:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4E5B96B0096; Tue, 27 Aug 2024 12:07:55 -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 2F38C6B0093 for ; Tue, 27 Aug 2024 12:07:55 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4CD9181C5D for ; Tue, 27 Aug 2024 16:07:31 +0000 (UTC) X-FDA: 82498505502.02.41ECB59 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf21.hostedemail.com (Postfix) with ESMTP id 20C721C0031 for ; Tue, 27 Aug 2024 16:07:28 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=L7XpTDGg; spf=pass (imf21.hostedemail.com: domain of brauner@kernel.org designates 147.75.193.91 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=1724774780; 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=uazMo0IM558jInsehz70etwPs2IJBI+HgyGqAKmMDI8=; b=espg9xTl2j/Z5FPiyOpqiXuGYmMMYw7OrKSwS0X2SAI9VPMvXufccQ7CJqXWwLHQBfrroV E9t+rQUc9xhGmP0vv+x/TZMuLEPAitCh3w0gj+uxixpmFCbWxzhcWmGeFnqV25gxzqfLyl aRSvncQSRG+Y3tWKlKGNARS6LRMB4qk= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=L7XpTDGg; spf=pass (imf21.hostedemail.com: domain of brauner@kernel.org designates 147.75.193.91 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=1724774780; a=rsa-sha256; cv=none; b=ZQOkPTV91N6nD83BOrpmBRvMP/W2IRY2GAVXptt6FKvLKSMSJOHCVaJNz6GSWEzRGdU4c+ 0U6nUJdE3jm4XA/nOKvbp4bfd4oUrhAEoU0QUUosYwMnG1A/Fd+FW08vdVW5fyk8f7hHm8 HKf17NdP6cW9QR6Zt/PcI75dlus4Cl8= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9EF65A41FDF; Tue, 27 Aug 2024 16:07:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2129C4FDE2; Tue, 27 Aug 2024 15:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724774399; bh=inSYKr8Tp4YUwStuHZTh2AxEw7grjX6tn9NgCfW/hs4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=L7XpTDGgBL8T6Ryq+Mm+zh/RFrNd6ISBnEgZbezEGDKfSw0Hu0waaQEyNmPmbL7JH gesM8omul5uT5JPNUKogfwtZGlmAl/+u6sBThJPJjUCah2dP0LcyyFJNf4GSq78WLU 1VF/vGp3nrPrtiNEMl3/BxBwZs6eEa9xr1FQhGu+2SkT4C0EfIJ+Aw1yF0B1s0/4lK hBTeqjjqdwkjMlIZtD3yJ50RvUlWCturr7xam3hrxpuwp4HEzrPQ85vzzAOBeae4Ik pBKX6OIis2zpR/qk7/ncNircBh+YUkl6AlrzeMyUWHY7fOyWpRdGXR8SPnkQSoUw8I qu8N+Q7kwER2A== From: Christian Brauner Date: Tue, 27 Aug 2024 17:59:42 +0200 Subject: [PATCH v2 1/3] mm: remove unused root_cache argument MIME-Version: 1.0 Message-Id: <20240827-work-kmem_cache-rcu-v2-1-7bc9c90d5eef@kernel.org> References: <20240827-work-kmem_cache-rcu-v2-0-7bc9c90d5eef@kernel.org> In-Reply-To: <20240827-work-kmem_cache-rcu-v2-0-7bc9c90d5eef@kernel.org> To: Vlastimil Babka , Jens Axboe , "Paul E. McKenney" , Roman Gushchin , Jann Horn , Linus Torvalds , linux-mm@kvack.org Cc: Christian Brauner , linux-fsdevel@vger.kernel.org X-Mailer: b4 0.15-dev-37811 X-Developer-Signature: v=1; a=openpgp-sha256; l=1077; i=brauner@kernel.org; h=from:subject:message-id; bh=inSYKr8Tp4YUwStuHZTh2AxEw7grjX6tn9NgCfW/hs4=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaSd/f674rHcioZtp3PKJ+07Nvv38q9nVynHlR6+WNmzy DN4k8r6OR2lLAxiXAyyYoosDu0m4XLLeSo2G2VqwMxhZQIZwsDFKQATOd3D8D/zk+MfqUt9y/L4 /hRvOv3XWj7nOesJHY7aiE25+3gu/kphZDj/+IJAzK9lEbvnb+38OkUgZ+6aU1LKvVvc1rx4vWm f3XluAA== X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 X-Stat-Signature: y3gp138fey67pshsdiqz3qogi5his16q X-Rspam-User: X-Rspamd-Queue-Id: 20C721C0031 X-Rspamd-Server: rspam02 X-HE-Tag: 1724774848-758959 X-HE-Meta: U2FsdGVkX1/PnfBL8xV2/+JgF5Beoxh0eThBwv3q1DlizxXVokg3vIxqAee3rUCbSVI7exgW0lufdvMj+sObhCaDXBIwcd3dyQHLdZOGagKJljD932uP7Gspyj3sM70pCGaan2lkGnMgRIgyP3ctq49nYaPH8r/MX29NFHg9RZvlrK8swh2eLkKxGXBxYgBqnHiftWYNzX6Xph7vJMfPhSmZKfsX1o1pFTgwwevktCo7ecXKtFaRk4pxTguhQi60MUHOPBIljyQlC7NBxOITKK5spoo/LXB267MWUXzLmR3ulvnirYV7BzqerO2wxto+ldbds4Q34Wo2pLVoCaM+DGC7v5E5L3U1pO731Du7cAZsRaWAW2BUy9+IsV9JmqafsYWylaRCnzaEEBhQi2hnwozH2bFirXmXjUh7FS5FxjvWPL6By4HMKksXxFtpHUhw3ZIdwhozkD3BexFpwGvUQb/GttNF9eR0cre9N/Rpd69eqdgOOvitXwZUMQFF9UA+6ilDSAqIhlx1m2ySJ8odwo9AA7OmH6VPNKK18nH47zgQYPsPWFH7/0DCW46Npzh+S6f/2pDUhEAh5TjYlrYew+YJ7AlFKBi3UxaKYBNIIa5qnDhSJoVzntes4KDMZjML2cmY5u6DGM6H9AkwzZXDpf0F0lcOfe349eulBAbu59HnuT0nOwfm6mnidt1JHHYGDmWyWZWTAkRdgIB+MPmq9b99AsR/aaq7cRdGdnjexx8/D7Bh4TeoUgIg8tQHU3RR530UZAnhDP7ZCB6e5g8ABV2eVfmj9CQHWa1nJ9PhAIqNUeKxqBykXHvOjixB+K+Xy+D5T/68SQ911IqVv4qY/DGn/dMdfOTdIVGx4/+9uBD1/CpN7hMuGEwqNChxMq1fVSdmO16sWv2ZXw30dKz/Taq7yGIqHWsgYMsRiYqKrT/fNEqSZCcwB3K4VpyHf11kAXlr2Rla3fIDW+0hUAi xeVzOsYY OJS+LL5ePN3ii+ve7b3P+DXzkmiBj+prPXqbsjXNKvX3Hz1dFLM5mMcnQkty0iks8NycJcmNTN8q3Ueidh7wl6u8W8pEA+xoF6YctNF2dPLoOl2d+NRAkzdcno5u1DAbxv+W/aknWKpggaTu5tgBbhQ7V0PJiWr+/hQuH2KtxCsDd6y0iDuwgzgMSbV7XX74adKDxrpPAEedJVPI6P3Dx6OwC1gTRgkAiKvdFrWO3ztquQdAkIgytLFSWkXnt/G0NyT880ffwc1YxmQxuXmhcpZcPP8qCW57N5eA5XGgONJ+1VNjYdDKds14MzlKo7+OmBY3g 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: That argument is unused so remove it. Signed-off-by: Christian Brauner --- mm/slab_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index 40b582a014b8..c8dd7e08c5f6 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -204,8 +204,7 @@ struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, static struct kmem_cache *create_cache(const char *name, unsigned int object_size, unsigned int align, slab_flags_t flags, unsigned int useroffset, - unsigned int usersize, void (*ctor)(void *), - struct kmem_cache *root_cache) + unsigned int usersize, void (*ctor)(void *)) { struct kmem_cache *s; int err; @@ -334,7 +333,7 @@ kmem_cache_create_usercopy(const char *name, s = create_cache(cache_name, size, calculate_alignment(flags, align, size), - flags, useroffset, usersize, ctor, NULL); + flags, useroffset, usersize, ctor); if (IS_ERR(s)) { err = PTR_ERR(s); kfree_const(cache_name);