NFSv4: Fix a typo in nfs_inode_reclaim_delegation

We were intending to put the previous instance of delegation->cred
before setting a new one.

Thanks to David Howells for spotting this.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

+3 -1
+3 -1
fs/nfs/delegation.c
··· 109 109 void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res) 110 110 { 111 111 struct nfs_delegation *delegation = NFS_I(inode)->delegation; 112 + struct rpc_cred *oldcred; 112 113 113 114 if (delegation == NULL) 114 115 return; ··· 117 116 sizeof(delegation->stateid.data)); 118 117 delegation->type = res->delegation_type; 119 118 delegation->maxsize = res->maxsize; 120 - put_rpccred(cred); 119 + oldcred = delegation->cred; 121 120 delegation->cred = get_rpccred(cred); 122 121 delegation->flags &= ~NFS_DELEGATION_NEED_RECLAIM; 123 122 NFS_I(inode)->delegation_state = delegation->type; 124 123 smp_wmb(); 124 + put_rpccred(oldcred); 125 125 } 126 126 127 127 /*