/* Called on failure; free up any blocks from the inode PA for this context. We don't need this for MB_GROUP_PA because we only change pa_free in ext4_mb_release_context(), but on failure, we've already zeroed out ac->ac_b_ex.fe_len, so group_pa->pa_free is not changed.  */
static void ext4_discard_allocated_blocks(struct ext4_allocation_context *ac)
/* Called on failure; free up any blocks from the inode PA for this context. We don't need this for MB_GROUP_PA because we only change pa_free in ext4_mb_release_context(), but on failure, we've already zeroed out ac->ac_b_ex.fe_len, so group_pa->pa_free is not changed.  */
static void ext4_discard_allocated_blocks(struct ext4_allocation_context *ac)
{
	struct ext4_prealloc_space *pa = ac->ac_pa;
	int len;
	if (pa && pa->pa_type == MB_INODE_PA) {
		len = ac->ac_b_ex.fe_len;
		pa->pa_free += len;
	}
}