From patchwork Mon Oct 24 07:42:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Shixin X-Patchwork-Id: 13016744 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 87499FA373D for ; Mon, 24 Oct 2022 06:54:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D75B8E0001; Mon, 24 Oct 2022 02:54:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 457C78E0006; Mon, 24 Oct 2022 02:54:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D6168E0001; Mon, 24 Oct 2022 02:54:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EECF88E0003 for ; Mon, 24 Oct 2022 02:54:06 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B87E1C0AA4 for ; Mon, 24 Oct 2022 06:54:06 +0000 (UTC) X-FDA: 80054928492.13.4DC9E6E Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf13.hostedemail.com (Postfix) with ESMTP id E7FDC20002 for ; Mon, 24 Oct 2022 06:54:05 +0000 (UTC) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mwm4t0SWzzHv3D; Mon, 24 Oct 2022 14:53:50 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 14:54:01 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 14:54:00 +0800 From: Liu Shixin To: Christoph Lameter , Pekka Enberg , "David Rientjes" , Joonsoo Kim , "Andrew Morton" , Vlastimil Babka , "Roman Gushchin" , Hyeonggon Yoo <42.hyeyoo@gmail.com> CC: , , Liu Shixin Subject: [PATCH 2/4] mm/slub: rename kmem_cache_release to slab_release in slub.c Date: Mon, 24 Oct 2022 15:42:30 +0800 Message-ID: <20221024074232.151383-3-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221024074232.151383-1-liushixin2@huawei.com> References: <20221024074232.151383-1-liushixin2@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666594446; 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; bh=WQBkH9lp0J5Wz/9XctF9SQTcwcyfIvX5R5NglwtmtO0=; b=ztAyk1e/HtcB3vE5YnWEi9Ei+oUnSs2yZOnsKIHycDiBT3WmN/SzztEWeZrA3cZ7P0w+OX sxyEirxEgu9u6FJ3rjZPLFoi7tNC8C6kooRbCewgoTm0kJtNzEJtCKMkxLdtXBPbV+K2FQ XZs6PFCn73HTUZ/GJkew3htR/wT7bKw= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of liushixin2@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=liushixin2@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666594446; a=rsa-sha256; cv=none; b=8pduBwJ4jHUcQCw6dKyl1WgAAcyNhsKfVMkA7dL2ypeN1NoeUUkc7wRKQs85qchA3gpygG Y82VIFqX82bm96fNC7EpjIDFnByDGtDrGis9v4Ua2gYNj0tg55etlqT934ydBMrXnDrXKw 6Pj64XQTVtPDMDO8Q0C0A8SDh5fkHKk= X-Stat-Signature: hqyu3zwy4icd4qon1thw1qnssf1c85bg X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of liushixin2@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=liushixin2@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: E7FDC20002 X-HE-Tag: 1666594445-963503 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: The function name kmem_cache_release has been reused in slab_common.c and slub.c which is easy to misunderstand. Rename the kmem_cache_release to slab_release in slub.c to distinguish them. Signed-off-by: Liu Shixin --- mm/slub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 157527d7101b..ba94eb6fda78 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5847,7 +5847,7 @@ static ssize_t slab_attr_store(struct kobject *kobj, return attribute->store(s, buf, len); } -static void kmem_cache_release(struct kobject *k) +static void slab_release(struct kobject *k) { slab_kmem_cache_release(to_slab(k)); } @@ -5859,7 +5859,7 @@ static const struct sysfs_ops slab_sysfs_ops = { static struct kobj_type slab_ktype = { .sysfs_ops = &slab_sysfs_ops, - .release = kmem_cache_release, + .release = slab_release, }; static struct kset *slab_kset;