|
@@ -375,7 +375,6 @@ alloc_init_deleg(struct nfs4_client *clp, struct nfs4_ol_stateid *stp, struct sv
|
|
|
dp = delegstateid(nfs4_alloc_stid(clp, deleg_slab));
|
|
|
if (dp == NULL)
|
|
|
return dp;
|
|
|
- dp->dl_stid.sc_type = NFS4_DELEG_STID;
|
|
|
/*
|
|
|
* delegation seqid's are never incremented. The 4.1 special
|
|
|
* 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)
|
|
|
{
|
|
|
lockdep_assert_held(&state_lock);
|
|
|
|
|
|
+ dp->dl_stid.sc_type = NFS4_DELEG_STID;
|
|
|
list_add(&dp->dl_perfile, &fp->fi_delegations);
|
|
|
list_add(&dp->dl_perclnt, &dp->dl_stid.sc_client->cl_delegations);
|
|
|
}
|