/* dispose of a reference to a writeback record  */
void afs_put_writeback(struct afs_writeback *wb)
/* dispose of a reference to a writeback record  */
void afs_put_writeback(struct afs_writeback *wb)
{
	struct afs_vnode *vnode = wb->vnode;
	_enter("{%d}", wb->usage);
	spin_lock(&vnode->writeback_lock);
	if (--wb->usage == 0)
		afs_unlink_writeback(wb);
	else
		wb = NULL;
	spin_unlock(&vnode->writeback_lock);
	if (wb)
		afs_free_writeback(wb);
}