Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2205139rwl; Thu, 6 Apr 2023 07:13:41 -0700 (PDT) X-Google-Smtp-Source: AKy350aOx1Eewy+GUfWXroi1vbAT553eU3w1g0mpePDP2NTrtymix11eJl+vMWr4WcYWI6Y/IgxR X-Received: by 2002:a17:907:2cf8:b0:932:e368:fbe7 with SMTP id hz24-20020a1709072cf800b00932e368fbe7mr5809264ejc.29.1680790421018; Thu, 06 Apr 2023 07:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680790421; cv=none; d=google.com; s=arc-20160816; b=fuySo9FmkHDG5tx6xSyPF2s3olv2JhuLuBDLcKdJljlamAL39/HxinnIxvZt5Kttwd FOZHGA1KbbS2yOJxuap8rpiQ8idxiKz68OiCSrqFc6x452zCVTYYcexe4QipdhUVlb28 LzjcMnNaY0w/h/I/tYzYrleL9xk3dwwaclT9+JAVbKK+PKdKHOTsC/sn55RO5BxqFHLu KtOI8S5SfwwpkplzTS/mGmtLF7CFFwxLLamxmzeY02l+aBtEN5OZER04r8qT59+/f60J ArHVNOyFypSXG2XD99GXf4a66hT1AL9dsjCbwvC2ybS2m1ceBwG72tqeC8T3WCcKpfij y24w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mUqPpBsJy9yXuVdRMY7+DV0E3whm/8u/LqgfTtzlFHI=; b=t+GalBNmo5mnJAdlv0U0IEBobQ6uNV3dfu1cpRnJ51jQQP5+q0B65yjVLiYjysH7lv HKcsYPmD5qXRdgvcho4NPzbTkTcERhfDWeAPFjA798H9qAYyNPuP9BYK2B+hKXe6XMh9 O5tUrrm8Kgyr2SX6Ymm7dxxd4CK6uqN0kB3C1b+Jwe4d2gKvsOl6ILIC/EvzdgTagv0S icJV4Y535buxsyPt5wfKvL9r3zRBISABF+ldbhgYDZO/BttTjJI+0MGw3R4Zzm1nOPfx sIQGtUFsAa1Iqi+93n0qqktCh9BeO3t5Y6c6ARRBahIj8vaAmWo1KAJGSKhVOjs6kJgE Fw/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MJitgiEQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs38-20020a1709072d2600b0093048a8bd2esi1704758ejc.43.2023.04.06.07.13.05; Thu, 06 Apr 2023 07:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MJitgiEQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239103AbjDFOLa (ORCPT + 99 others); Thu, 6 Apr 2023 10:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239108AbjDFOLG (ORCPT ); Thu, 6 Apr 2023 10:11:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF375A27D for ; Thu, 6 Apr 2023 07:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680790207; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mUqPpBsJy9yXuVdRMY7+DV0E3whm/8u/LqgfTtzlFHI=; b=MJitgiEQP0mZwIQzhYkCz1DlnyKxALmLWm0ZjsLUu71tNKGktNoTYrWGyNP7uM6k/MUZ4I a198pMcglh30JjQcBtOdsZBtOYLsasBPRUc2xzmF/0Gkh5uu+2Thpuq7t3WCLzs0tRCoLU AKrv3C+v39IMGV8/3ay/7aiHPH9TKTQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-aKImiNXDNsGnfIFQk8GG2w-1; Thu, 06 Apr 2023 10:10:06 -0400 X-MC-Unique: aKImiNXDNsGnfIFQk8GG2w-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 135FC101A551; Thu, 6 Apr 2023 14:10:06 +0000 (UTC) Received: from bcodding.csb.redhat.com (unknown [10.22.10.202]) by smtp.corp.redhat.com (Postfix) with ESMTP id AAA232166B26; Thu, 6 Apr 2023 14:10:05 +0000 (UTC) From: Benjamin Coddington To: linux-nfs@vger.kernel.org Cc: Anna.Schumaker@netapp.com, Olga.Kornievskaia@netapp.com Subject: [PATCH 1/6] NFS: rename nfs_client_kset to nfs_kset Date: Thu, 6 Apr 2023 10:09:59 -0400 Message-Id: <698994379a2d17dded9f853bbdf3649345808126.1680786859.git.bcodding@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Be brief and match the subsystem name. There's no need to distinguish this kset variable from the server. Signed-off-by: Benjamin Coddington --- fs/nfs/sysfs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c index 0cbcd2dfa732..81d98727b79f 100644 --- a/fs/nfs/sysfs.c +++ b/fs/nfs/sysfs.c @@ -18,7 +18,7 @@ #include "sysfs.h" struct kobject *nfs_client_kobj; -static struct kset *nfs_client_kset; +static struct kset *nfs_kset; static void nfs_netns_object_release(struct kobject *kobj) { @@ -55,13 +55,13 @@ static struct kobject *nfs_netns_object_alloc(const char *name, int nfs_sysfs_init(void) { - nfs_client_kset = kset_create_and_add("nfs", NULL, fs_kobj); - if (!nfs_client_kset) + nfs_kset = kset_create_and_add("nfs", NULL, fs_kobj); + if (!nfs_kset) return -ENOMEM; - nfs_client_kobj = nfs_netns_object_alloc("net", nfs_client_kset, NULL); + nfs_client_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL); if (!nfs_client_kobj) { - kset_unregister(nfs_client_kset); - nfs_client_kset = NULL; + kset_unregister(nfs_kset); + nfs_kset = NULL; return -ENOMEM; } return 0; @@ -70,7 +70,7 @@ int nfs_sysfs_init(void) void nfs_sysfs_exit(void) { kobject_put(nfs_client_kobj); - kset_unregister(nfs_client_kset); + kset_unregister(nfs_kset); } static ssize_t nfs_netns_identifier_show(struct kobject *kobj, @@ -159,7 +159,7 @@ static struct nfs_netns_client *nfs_netns_client_alloc(struct kobject *parent, p = kzalloc(sizeof(*p), GFP_KERNEL); if (p) { p->net = net; - p->kobject.kset = nfs_client_kset; + p->kobject.kset = nfs_kset; if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type, parent, "nfs_client") == 0) return p; -- 2.39.2