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