aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 280d41f64a57..d5c5bdfa4231 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1453,6 +1453,10 @@ static int nfs4_server_common_setup(struct nfs_server *server,
1453 BUG_ON(!server->nfs_client->rpc_ops); 1453 BUG_ON(!server->nfs_client->rpc_ops);
1454 BUG_ON(!server->nfs_client->rpc_ops->file_inode_ops); 1454 BUG_ON(!server->nfs_client->rpc_ops->file_inode_ops);
1455 1455
1456 /* data servers support only a subset of NFSv4.1 */
1457 if (is_ds_only_client(server->nfs_client))
1458 return -EPROTONOSUPPORT;
1459
1456 fattr = nfs_alloc_fattr(); 1460 fattr = nfs_alloc_fattr();
1457 if (fattr == NULL) 1461 if (fattr == NULL)
1458 return -ENOMEM; 1462 return -ENOMEM;