[Cluster-devel] [PATCH v2.1 19/30] iomap: switch iomap_bmap to use iomap_iter

Christoph Hellwig hch at lst.de
Thu Aug 12 06:50:29 UTC 2021


On Wed, Aug 11, 2021 at 12:18:00PM -0700, Darrick J. Wong wrote:
> +	while ((ret = iomap_iter(&iter, ops)) > 0) {
> +		if (iter.iomap.type == IOMAP_MAPPED)
> +			bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift;
> +		/* leave iter.processed unset to abort loop */
> +	}

This looks ok, thanks.




More information about the Cluster-devel mailing list