diff options
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 63e764506bd2..e5197d947b9e 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -375,7 +375,6 @@ alloc_init_deleg(struct nfs4_client *clp, struct nfs4_ol_stateid *stp, struct sv | |||
375 | dp = delegstateid(nfs4_alloc_stid(clp, deleg_slab)); | 375 | dp = delegstateid(nfs4_alloc_stid(clp, deleg_slab)); |
376 | if (dp == NULL) | 376 | if (dp == NULL) |
377 | return dp; | 377 | return dp; |
378 | dp->dl_stid.sc_type = NFS4_DELEG_STID; | ||
379 | /* | 378 | /* |
380 | * delegation seqid's are never incremented. The 4.1 special | 379 | * delegation seqid's are never incremented. The 4.1 special |
381 | * meaning of seqid 0 isn't meaningful, really, but let's avoid | 380 | * meaning of seqid 0 isn't meaningful, really, but let's avoid |
@@ -438,6 +437,7 @@ hash_delegation_locked(struct nfs4_delegation *dp, struct nfs4_file *fp) | |||
438 | { | 437 | { |
439 | lockdep_assert_held(&state_lock); | 438 | lockdep_assert_held(&state_lock); |
440 | 439 | ||
440 | dp->dl_stid.sc_type = NFS4_DELEG_STID; | ||
441 | list_add(&dp->dl_perfile, &fp->fi_delegations); | 441 | list_add(&dp->dl_perfile, &fp->fi_delegations); |
442 | list_add(&dp->dl_perclnt, &dp->dl_stid.sc_client->cl_delegations); | 442 | list_add(&dp->dl_perclnt, &dp->dl_stid.sc_client->cl_delegations); |
443 | } | 443 | } |