/* Kill the altpath contents of a da-state structure.  */
STATIC void xfs_da_state_kill_altpath(xfs_da_state_t *state)
/* Kill the altpath contents of a da-state structure.  */
STATIC void xfs_da_state_kill_altpath(xfs_da_state_t *state)
{
	int	i;
	for (i = 0; i < state->altpath.active; i++) {
		if (state->altpath.blk[i].bp) {
			if (state->altpath.blk[i].bp != state->path.blk[i].bp)
				xfs_da_buf_done(state->altpath.blk[i].bp);
			state->altpath.blk[i].bp = NULL;
		}
	}
	state->altpath.active = 0;
}