diff options
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r-- | fs/nfs/nfs4client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 6bacfde1319a..acc347268124 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include "internal.h" | 12 | #include "internal.h" |
13 | #include "callback.h" | 13 | #include "callback.h" |
14 | #include "delegation.h" | 14 | #include "delegation.h" |
15 | #include "nfs4session.h" | ||
15 | #include "pnfs.h" | 16 | #include "pnfs.h" |
16 | #include "netns.h" | 17 | #include "netns.h" |
17 | 18 | ||
@@ -713,10 +714,6 @@ static int nfs4_server_common_setup(struct nfs_server *server, | |||
713 | struct nfs_fattr *fattr; | 714 | struct nfs_fattr *fattr; |
714 | int error; | 715 | int error; |
715 | 716 | ||
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 */ | 717 | /* data servers support only a subset of NFSv4.1 */ |
721 | if (is_ds_only_client(server->nfs_client)) | 718 | if (is_ds_only_client(server->nfs_client)) |
722 | return -EPROTONOSUPPORT; | 719 | return -EPROTONOSUPPORT; |