Re: [PATCHv4 7/9] block/bounce: count bytes instead of sectors

Christoph Hellwig
2022-05-31T06:27:11Z

On Wed, May 25, 2022 at 06:06:11PM -0700, Keith Busch wrote:
> + /*
> + * If the original has more than BIO_MAX_VECS biovecs, the total bytes
> + * may not be block size aligned. Align down to ensure both sides of
> + * the split bio are appropriately sized.
> + */

Same comment on the comment as fo the previous patch.

> + sectors = ALIGN_DOWN(bytes, queue_logical_block_size(q)) >> SECTOR_SHIFT;

Overly long line here.