Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1488422rwd; Thu, 15 Jun 2023 11:09:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ415uRsRjxNCUF3St0nZ3CHV9sP8hkq02wrMMGnqLnUIEbbtVgIo2D0M8egmPwUsyV9qtZ1 X-Received: by 2002:a05:6358:cc30:b0:127:f3e5:c2a with SMTP id gx48-20020a056358cc3000b00127f3e50c2amr12583000rwb.5.1686852562835; Thu, 15 Jun 2023 11:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686852562; cv=none; d=google.com; s=arc-20160816; b=VdaG9Lwxt0RpHyAjszcLLYV8E1OZJcEd9BlOtUOJjqUIkazOA7bh9aC/05foMv4rbq h9i9Mm1MVgyXsc6FFzEMlGxCC5mPt1yQul7HxlpanGsS9DOQ/kJfsff1bnFDpsBKelEd kmI0ABlax6Sv1RaVvj+3/itYlMbj1DxWSuue0Xu7RDAgjhPEP6Pc15mlxJgoWw3YijgS Pe45d/DOQWztmA+tbrR8cqIfx8usd82/QgtnK6D++Qer3IxN/mZcpHqLHf4PmgqQI3nB BDaUhrO+8Alv7qjihDdNvxdAFv0rT9cYaaIrsKUyRNKDQQ1WlXwsCvWerVU+1MajH5yZ zgtQ== 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:to:from :dkim-signature; bh=mOnTFTtf4uACONN9wRMJEN7Rg2Z4ONqw3pzQkh21PjE=; b=E1RrNzw/LImisRfss4oa4U8UFAnKEOfBLlUaSWx+zRnzbEArM6U3WfQCjNs5tE6hhK +sUzw92NM0wflUVjWP9C0wfir8LHxn8+RmI/P0B6O4Kv5IrWrAIryYSH5NQD83cc9dHP TSX4YoM83lclEF981u7udn4ULzTYhgwcZw5KwQiyKNPojbDL5pxFGj/T4TVW6Yu/psXK ef2UMDP/2ZIpxwP3SVbyYMsrSPqtcptPN+obItwF9c8tdwzUee322fnp1J4Il3vbOyPm Nrdq+AYpeG0gd2p935PRENEsW8LAQj9q0i+rBikZiOoY5xLOY8i4hx7FFf8DHfKtlFxX Zxqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Kxpx4Wj9; 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 i194-20020a639dcb000000b0051b90567f99si3113852pgd.690.2023.06.15.11.09.10; Thu, 15 Jun 2023 11:09:22 -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=Kxpx4Wj9; 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 S236818AbjFOSI1 (ORCPT + 99 others); Thu, 15 Jun 2023 14:08:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235146AbjFOSIY (ORCPT ); Thu, 15 Jun 2023 14:08:24 -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 7F0E8295E for ; Thu, 15 Jun 2023 11:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686852455; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mOnTFTtf4uACONN9wRMJEN7Rg2Z4ONqw3pzQkh21PjE=; b=Kxpx4Wj9eBWfPkrowVB3g4fbluSoo6madXBkhYkjZN98+mbSwuXsVPc1ILyvucR6oMqshE /UhcFDI1mU+zsy+5eq9PfLuSOyCm4elNeCQx/jHB8ButBtVi9BwZkHexKU92cabPLxup4I cOsks5vVSqfF1cT+Zh6nlm7cPKSPICw= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-629-Yr3yt7W_N9Gyl6aaaaWONQ-1; Thu, 15 Jun 2023 14:07:34 -0400 X-MC-Unique: Yr3yt7W_N9Gyl6aaaaWONQ-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 90F9E1C05146 for ; Thu, 15 Jun 2023 18:07:33 +0000 (UTC) Received: from bcodding.csb.redhat.com (unknown [10.22.50.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 537402166B27 for ; Thu, 15 Jun 2023 18:07:33 +0000 (UTC) From: Benjamin Coddington To: linux-nfs@vger.kernel.org Subject: [PATCH v4 01/11] NFS: rename nfs_client_kset to nfs_kset Date: Thu, 15 Jun 2023 14:07:22 -0400 Message-Id: <698994379a2d17dded9f853bbdf3649345808126.1686851158.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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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.40.1