/* This function returns the delegation without reclaiming opens or protecting against delegation reclaims. It is therefore really only safe to be called from nfs4_clear_inode()  */
void nfs_inode_return_delegation_noreclaim(struct inode *inode)
/* This function returns the delegation without reclaiming opens or protecting against delegation reclaims. It is therefore really only safe to be called from nfs4_clear_inode()  */
void nfs_inode_return_delegation_noreclaim(struct inode *inode)
{
	struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
	struct nfs_inode *nfsi = NFS_I(inode);
	struct nfs_delegation *delegation;
	if (rcu_access_pointer(nfsi->delegation) != NULL) {
		spin_lock(&clp->cl_lock);
		delegation = nfs_detach_delegation_locked(nfsi, NULL, clp);
		spin_unlock(&clp->cl_lock);
		if (delegation != NULL)
			nfs_do_return_delegation(inode, delegation, 0);
	}
}