/* Return a minimum chunk size of all snapshots that have the specified origin. Return zero if the origin has no snapshots.  */
static sector_t __minimum_chunk_size(struct origin *o)
/* Return a minimum chunk size of all snapshots that have the specified origin. Return zero if the origin has no snapshots.  */
static sector_t __minimum_chunk_size(struct origin *o)
{
	struct dm_snapshot *snap;
	unsigned chunk_size = 0;
	if (o)
		list_for_each_entry(snap, &o->snapshots, list)
			chunk_size = min_not_zero(chunk_size,
						  snap->store->chunk_size);
	return chunk_size;
}