Thread (29 messages) 29 messages, 6 authors, 2022-05-31

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

From: Christoph Hellwig <hch@lst.de>
Date: 2022-05-31 06:27:11
Also in: linux-fsdevel

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help