aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 671510cc14c0..54767dd66cf9 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1100,6 +1100,7 @@ static struct nfs4_state *nfs4_opendata_to_nfs4_state(struct nfs4_opendata *data
1100 if (state == NULL) 1100 if (state == NULL)
1101 goto err_put_inode; 1101 goto err_put_inode;
1102 if (data->o_res.delegation_type != 0) { 1102 if (data->o_res.delegation_type != 0) {
1103 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
1103 int delegation_flags = 0; 1104 int delegation_flags = 0;
1104 1105
1105 rcu_read_lock(); 1106 rcu_read_lock();
@@ -1111,7 +1112,7 @@ static struct nfs4_state *nfs4_opendata_to_nfs4_state(struct nfs4_opendata *data
1111 pr_err_ratelimited("NFS: Broken NFSv4 server %s is " 1112 pr_err_ratelimited("NFS: Broken NFSv4 server %s is "
1112 "returning a delegation for " 1113 "returning a delegation for "
1113 "OPEN(CLAIM_DELEGATE_CUR)\n", 1114 "OPEN(CLAIM_DELEGATE_CUR)\n",
1114 NFS_CLIENT(inode)->cl_server); 1115 clp->cl_hostname);
1115 } else if ((delegation_flags & 1UL<<NFS_DELEGATION_NEED_RECLAIM) == 0) 1116 } else if ((delegation_flags & 1UL<<NFS_DELEGATION_NEED_RECLAIM) == 0)
1116 nfs_inode_set_delegation(state->inode, 1117 nfs_inode_set_delegation(state->inode,
1117 data->owner->so_cred, 1118 data->owner->so_cred,