aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 41a3590ef2cc..7f616e928a57 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -215,9 +215,7 @@ alloc_init_deleg(struct nfs4_client *clp, struct nfs4_stateid *stp, struct svc_f
215 dp->dl_stateid.si_stateownerid = current_delegid++; 215 dp->dl_stateid.si_stateownerid = current_delegid++;
216 dp->dl_stateid.si_fileid = 0; 216 dp->dl_stateid.si_fileid = 0;
217 dp->dl_stateid.si_generation = 0; 217 dp->dl_stateid.si_generation = 0;
218 dp->dl_fhlen = current_fh->fh_handle.fh_size; 218 fh_copy_shallow(&dp->dl_fh, &current_fh->fh_handle);
219 memcpy(dp->dl_fhval, &current_fh->fh_handle.fh_base,
220 current_fh->fh_handle.fh_size);
221 dp->dl_time = 0; 219 dp->dl_time = 0;
222 atomic_set(&dp->dl_count, 1); 220 atomic_set(&dp->dl_count, 1);
223 list_add(&dp->dl_perfile, &fp->fi_delegations); 221 list_add(&dp->dl_perfile, &fp->fi_delegations);