Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2576891rwr; Fri, 21 Apr 2023 10:43:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bl8G6s2kSbxRbJD2668ZE4eJeEZu0s+JzjpmDuoZLMkx/X6m9cilTAgTNuV8JkupGzvEoD X-Received: by 2002:a05:6a20:8407:b0:ef:9115:c718 with SMTP id c7-20020a056a20840700b000ef9115c718mr7834406pzd.26.1682098985884; Fri, 21 Apr 2023 10:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682098985; cv=none; d=google.com; s=arc-20160816; b=lCYOhIYTawy1TzoLODX9/lsKHrA4XgXRTtjayQB7Pg6L3nYHELqWM3xRAvaB+HuzB/ f0SCkPb6vAiFAtGnZMa4TH1W6FEmF79OEexeBL66DcY5YGP7S5UcwV8lkXhctEgy/i8t 5LW2bfiwJSgniy1sv26LcQEWc9N5qsR8cGiGMbVsyIW8DP/c8t8gtuIZPAOb4U6PNK6O Bvd+/LtTFR6vrKODRkbQ5tiSP3/vZrw4JeKcA+k42BTAxid8Ba9ZAzQlpnGSzV68Kipk rylW/iD/bVVDTELdwbV5WgI4/OoD76vnuOru8HOWft8gSuipOCJroGjRk2P1wJ+DFD+R TjYw== 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=RjShONusOdEpIJwGrDOuO3fRc0vE5MoNwmON3dpd1WA=; b=m55Gq8Eqvo1HFJzO9JtLsMxP6zL7QiIhGpMSwYJi4eVq0JFXjK8/nvdkrHTYDGxMJU PL42BFaOtZqG4YjfALa9OuVzF42Q1oB5cmxv/1+PkQQSFwetes/RwXwLxSNRvXeEZHc/ NGKWRrSC00rMvvsKuFswWJmmteyK2m57tjz0oUApNma+XKjSuWNw0Yu39xJSlvKiSFYw GlDOP7+doewlr2RMYtFaP/xrhCiZaj4R6j8T9W4Ecg3kiJil7TFzhExTEDIIGOQPtY6f wHs5pFK3swa0B2Q+M+ws/5cwhoS9Uu0zPbaU/kaUzGzfEgHSPe/oYM21JXUdVHr9LT5c ebrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Lv7r5SZU; 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 r7-20020a632047000000b0051b35cb52b2si4481537pgm.565.2023.04.21.10.42.51; Fri, 21 Apr 2023 10:43:05 -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=Lv7r5SZU; 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 S229920AbjDURTd (ORCPT + 99 others); Fri, 21 Apr 2023 13:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233017AbjDURT3 (ORCPT ); Fri, 21 Apr 2023 13:19:29 -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 0EC3A30FB for ; Fri, 21 Apr 2023 10:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682097523; 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=RjShONusOdEpIJwGrDOuO3fRc0vE5MoNwmON3dpd1WA=; b=Lv7r5SZUN3+eaoJ76TUMQZpFB9jogPKDlhnn/I8ewKB73Atq89eNbVruYfQcDj2N6T0eHO fbu3HR28QYSOAEwSaj0bRjlbpaYKcp2yQB7ceVJKreLtv1mYn1NuPN4neH9FWX5Zx0ayXE HZTaWYwQ8LVfp7slDty76cKmf3ARpYA= 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-627-ogkn5ZLYNoWNRv2yHdd7og-1; Fri, 21 Apr 2023 13:18:42 -0400 X-MC-Unique: ogkn5ZLYNoWNRv2yHdd7og-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A63B7800047 for ; Fri, 21 Apr 2023 17:18:41 +0000 (UTC) Received: from bcodding.csb.redhat.com (ovpn-0-3.rdu2.redhat.com [10.22.0.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 501D240C2064 for ; Fri, 21 Apr 2023 17:18:41 +0000 (UTC) From: Benjamin Coddington To: linux-nfs@vger.kernel.org Subject: [PATCH 2/9] NFS: rename nfs_client_kobj to nfs_net_kobj Date: Fri, 21 Apr 2023 13:18:32 -0400 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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, RCVD_IN_MSPIKE_H2,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 Match the variable names to the sysfs structure. Signed-off-by: Benjamin Coddington --- fs/nfs/sysfs.c | 10 +++++----- fs/nfs/sysfs.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c index 81d98727b79f..a496e26fcfb7 100644 --- a/fs/nfs/sysfs.c +++ b/fs/nfs/sysfs.c @@ -17,7 +17,7 @@ #include "netns.h" #include "sysfs.h" -struct kobject *nfs_client_kobj; +struct kobject *nfs_net_kobj; static struct kset *nfs_kset; static void nfs_netns_object_release(struct kobject *kobj) @@ -58,8 +58,8 @@ int nfs_sysfs_init(void) nfs_kset = kset_create_and_add("nfs", NULL, fs_kobj); if (!nfs_kset) return -ENOMEM; - nfs_client_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL); - if (!nfs_client_kobj) { + nfs_net_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL); + if (!nfs_net_kobj) { kset_unregister(nfs_kset); nfs_kset = NULL; return -ENOMEM; @@ -69,7 +69,7 @@ int nfs_sysfs_init(void) void nfs_sysfs_exit(void) { - kobject_put(nfs_client_kobj); + kobject_put(nfs_net_kobj); kset_unregister(nfs_kset); } @@ -172,7 +172,7 @@ void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net) { struct nfs_netns_client *clp; - clp = nfs_netns_client_alloc(nfs_client_kobj, net); + clp = nfs_netns_client_alloc(nfs_net_kobj, net); if (clp) { netns->nfs_client = clp; kobject_uevent(&clp->kobject, KOBJ_ADD); diff --git a/fs/nfs/sysfs.h b/fs/nfs/sysfs.h index 5501ef573c32..0423aaf388c9 100644 --- a/fs/nfs/sysfs.h +++ b/fs/nfs/sysfs.h @@ -14,7 +14,7 @@ struct nfs_netns_client { const char __rcu *identifier; }; -extern struct kobject *nfs_client_kobj; +extern struct kobject *nfs_net_kobj; extern int nfs_sysfs_init(void); extern void nfs_sysfs_exit(void); -- 2.39.2