[lvm-devel] [PATCH 2 of 10] LVM: make log_area a list

Alasdair G Kergon agk at redhat.com
Thu Oct 15 22:47:27 UTC 2009


On Thu, Oct 08, 2009 at 04:18:36PM -0500, Jon Brassow wrote:
> +	int skip = 0;

> +				dm_list_iterate_items(aa, &ah->log_areas)
> +					if (pvm->pv == aa->pv)
> +						skip = 1;
> +				if (skip) {
> +					skip = 0;
> +					continue;
> +				}

If 'skip' is just to break out of nested loops, please use something
like 'goto next_pv' instead.

Alasdair




More information about the lvm-devel mailing list