From patchwork Wed Aug 28 10:56:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 13781133 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 1CA4AC54EDA for ; Wed, 28 Aug 2024 11:12:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 621136B0085; Wed, 28 Aug 2024 07:12:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D05D6B0088; Wed, 28 Aug 2024 07:12:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4BF976B0089; Wed, 28 Aug 2024 07:12:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 302946B0085 for ; Wed, 28 Aug 2024 07:12:27 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id CCEAD1C638B for ; Wed, 28 Aug 2024 11:12:26 +0000 (UTC) X-FDA: 82501390692.06.693BDB9 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf16.hostedemail.com (Postfix) with ESMTP id 136C1180022 for ; Wed, 28 Aug 2024 11:12:24 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mHXYuuar; spf=pass (imf16.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=1724843500; a=rsa-sha256; cv=none; b=aSKtcVgxTJAjUui9CwOOjmrm+NVVFp68+wwwuAXY9+bCD9AvB0i2Bc5Ztt5CuSwMQ5EKuV 9h7XywApc2WFT7ojXvNMSEu+P1RNqLt0PWrY2syNtf2QRt6b44bb+CLR8naq/wcHGKJACK oWlQOrDDhcQv0KgyqgAL+yxQV2RTOvg= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mHXYuuar; spf=pass (imf16.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=1724843500; 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=t0RNbguqXPDM2lmQ4ffzPsAVfnr/mHvHDXCkg0NxiA/XkLQK2U5Z9QZEz5ngO8To6s4hrS dBeDDQLOlpY41OPdtI+Cp6SCpn6iX0cB9DlHxlKqvLKyvahIas+4Brlu5iQ20hjP7k3lqJ snhbFDJt/SFJu7dLRVhUcJYRRPKLBB4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 21FE2A43517; Wed, 28 Aug 2024 11:12:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 330ABC4CAC3; Wed, 28 Aug 2024 10:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724842626; bh=inSYKr8Tp4YUwStuHZTh2AxEw7grjX6tn9NgCfW/hs4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mHXYuuarQlAW7U9rrFr5eCA110uyKzTvABuqujGMCI8x8yGsinQLw40LlPWMiBwWT twonLhTSp5AybpY0QTkiMOkMefzwRzpN5AKh6kVgB8Xp1EAgmoSEmvOroL2g7oZ5/u bJvL1hi00LZ6gbkIMMgeWgvILzDyFsval9GVKssNlWZsIs/QZ1fwtQ7AZ3Fig9dNkP TB4AsIFcF66lIo5I8XdrRDfDuAShQJutYznIeFzHeCxso+8LxeKYVg45gTwHiIw4/W W1OtJmHigfrW1tf95ru0+eAXyowjppXP32idXQB7hF327uJfteNV/1V1tlWH+Iy7+4 +wTbnjGWZOrfg== From: Christian Brauner Date: Wed, 28 Aug 2024 12:56:23 +0200 Subject: [PATCH v3 1/3] mm: remove unused root_cache argument MIME-Version: 1.0 Message-Id: <20240828-work-kmem_cache-rcu-v3-1-5460bc1f09f6@kernel.org> References: <20240828-work-kmem_cache-rcu-v3-0-5460bc1f09f6@kernel.org> In-Reply-To: <20240828-work-kmem_cache-rcu-v3-0-5460bc1f09f6@kernel.org> To: Vlastimil Babka , Jens Axboe , "Paul E. McKenney" , Roman Gushchin , Jann Horn , Linus Torvalds , Mike Rapoport , 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=owGbwMvMwCU28Zj0gdSKO4sYT6slMaSdZ6q50aTDtP2ozaXkW19l83cwCshturj1es4EEVn5O z+yPof1dpSyMIhxMciKKbI4tJuEyy3nqdhslKkBM4eVCWQIAxenAEwk+ynDH564nRNXnDbjOJ3w odOdY9vlgrJ9Qiff8Pys+PdB+8sD0+eMDLMefWv2/srP8eDUldm3ApMDzggEMG7nqP/wZQXX80m pLowA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 X-Stat-Signature: og86kxo9wfht6xeeo98eqwxzro769psn X-Rspamd-Queue-Id: 136C1180022 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1724843544-54829 X-HE-Meta: U2FsdGVkX18SHZImsx3JYpB0hm1uU34TtbhOnXEk2YhVbrPnpxaJMeJc/nkIaVa6iFIUwN8JsatPQFAe7BSjMABlovVU/LS/srjlsc8pbCKSs/O1pb5nGDZEqv6SW8zC0hlQFRrIHKR+4ZZTkE6OVubEsILPSLoLIIUv29ozV6rH4RGZ1z/WHiD6Hfp0A0Py51BWvEA/aPvk2mjiHxXWFsZEaWta3kCxmiqEmcPwXlkP45wV9rLKqaD1v+n5490E4G431OmUj0zyjQ9OEwjwxqKaVd+lCn1CKEVzYqYPHH2U62nXVl+KZs5b10O0y2SsyTsjUSOIBvDer/8yhMmrfku0Jd072wuEqC+rSEAwrfu9OKvo2Xoe11ymKmifBGZGy/AwNB1/z7FaQDv5K9usAT3FP6uZDF2dwQ/aZKx6KvDUCyLoQtJydYYCa4OBBRg4rKp71sgs2Ygt6LjxyPqzdY8goZzFovm64jxXXQTq9Tbcxxwt7d0evFW1q0jHFTvQ/P+yY+XjpG6qcr+VNwioNngVJoIlaUpAzLoly3EzYNNsUZHqGqgg5QoJdsErO/sHzENDmf9WmW1ElkaLHvovJQSgacj+jrMCEJ2AAnJ+70yCVR9lAaz7p1zwsr0CFDS1thd05e95NC4I82Os2QPj6xVrXad3DeJTZb5gNoOinj0czqaRSzSAPcW/kE+ikAY3fsCOx5k9n6YAqTmgnp+GH8KOOwqa3Qte4towThP6ctXn+0IuqV0lE4HvQco6bhsMoUd72DLZev5YXWYMVcCw1SU0rc9UDyb8O0eIYOPb6xqCJJY7de/z9STfMSl9dV5wIcjzqNQsJSiMxSelHldRi8P+5CxWbuBYYi7qukrCssaismjt30T5Ycl45atuW10+XclEt04JStf2CCAt7anNzo9dRLocgTXDynax9HP7ibkSzuWV1NzdhYoDO6szx1fAL8x8Nz9lu5RmnR1Sr87 SrK/HPbI mBho2m3+nQOJALJCEl+iYP2fXBs8XjFsL7YUxNgCNd+kpeMzggptw7TgeNdFjkq0EtokPC2Igl+sToxXU9arvBqTnklZgjrFRRytJoR+Np30Vc3/e5n+whuZfBL2s0NULSLaaCZZ5GAeQzZNTLqwcqwXKnW7m90NWZCy6WoVjPE3uOOWtuMKtlQB07KdecuK0rUO+QrH9HtftZ9ktltDuzczUnB+55OuG6as2w/HUg1CvESM7PKAeGclWfEXhV895tsyTVL7tUIBrc0+hivYskHdyflTFIIf4IG/Ryglg8jBJwv7N5y5czZR/l+/QYXBfugIG 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 Reviewed-by: Vlastimil Babka --- 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);