Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7df529af authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.1: Don't call nfs4_deviceid_purge_client() unless we're NFSv4.1

parent abd96698
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -204,9 +204,12 @@ error_0:
#ifdef CONFIG_NFS_V4_1
static void nfs4_shutdown_session(struct nfs_client *clp)
{
	if (nfs4_has_session(clp))
	if (nfs4_has_session(clp)) {
		nfs4_deviceid_purge_client(clp);
		nfs4_destroy_session(clp->cl_session);
	}

}
#else /* CONFIG_NFS_V4_1 */
static void nfs4_shutdown_session(struct nfs_client *clp)
{
@@ -298,8 +301,6 @@ static void nfs_free_client(struct nfs_client *clp)
	if (clp->cl_machine_cred != NULL)
		put_rpccred(clp->cl_machine_cred);

	nfs4_deviceid_purge_client(clp);

	put_net(clp->net);
	kfree(clp->cl_hostname);
	kfree(clp->server_scope);
+0 −3
Original line number Diff line number Diff line
@@ -426,9 +426,6 @@ static inline int pnfs_layoutcommit_inode(struct inode *inode, bool sync)
	return 0;
}

static inline void nfs4_deviceid_purge_client(struct nfs_client *ncl)
{
}
#endif /* CONFIG_NFS_V4_1 */

#endif /* FS_NFS_PNFS_H */