diff options
-rw-r--r-- | fs/nfs/client.c | 6 | ||||
-rw-r--r-- | fs/nfs/nfs4client.c | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 8b39a42ac35e..c285e0a117e4 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -277,7 +277,7 @@ void nfs_put_client(struct nfs_client *clp) | |||
277 | nfs_cb_idr_remove_locked(clp); | 277 | nfs_cb_idr_remove_locked(clp); |
278 | spin_unlock(&nn->nfs_client_lock); | 278 | spin_unlock(&nn->nfs_client_lock); |
279 | 279 | ||
280 | BUG_ON(!list_empty(&clp->cl_superblocks)); | 280 | WARN_ON_ONCE(!list_empty(&clp->cl_superblocks)); |
281 | 281 | ||
282 | clp->rpc_ops->free_client(clp); | 282 | clp->rpc_ops->free_client(clp); |
283 | } | 283 | } |
@@ -1061,10 +1061,6 @@ struct nfs_server *nfs_create_server(struct nfs_mount_info *mount_info, | |||
1061 | if (error < 0) | 1061 | if (error < 0) |
1062 | goto error; | 1062 | goto error; |
1063 | 1063 | ||
1064 | BUG_ON(!server->nfs_client); | ||
1065 | BUG_ON(!server->nfs_client->rpc_ops); | ||
1066 | BUG_ON(!server->nfs_client->rpc_ops->file_inode_ops); | ||
1067 | |||
1068 | /* Probe the root fh to retrieve its FSID */ | 1064 | /* Probe the root fh to retrieve its FSID */ |
1069 | error = nfs_probe_fsinfo(server, mount_info->mntfh, fattr); | 1065 | error = nfs_probe_fsinfo(server, mount_info->mntfh, fattr); |
1070 | if (error < 0) | 1066 | if (error < 0) |
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 6bacfde1319a..72717e67b34e 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c | |||
@@ -713,10 +713,6 @@ static int nfs4_server_common_setup(struct nfs_server *server, | |||
713 | struct nfs_fattr *fattr; | 713 | struct nfs_fattr *fattr; |
714 | int error; | 714 | int error; |
715 | 715 | ||
716 | BUG_ON(!server->nfs_client); | ||
717 | BUG_ON(!server->nfs_client->rpc_ops); | ||
718 | BUG_ON(!server->nfs_client->rpc_ops->file_inode_ops); | ||
719 | |||
720 | /* data servers support only a subset of NFSv4.1 */ | 716 | /* data servers support only a subset of NFSv4.1 */ |
721 | if (is_ds_only_client(server->nfs_client)) | 717 | if (is_ds_only_client(server->nfs_client)) |
722 | return -EPROTONOSUPPORT; | 718 | return -EPROTONOSUPPORT; |