Thread (26 messages) 26 messages, 6 authors, 2022-05-25

Re: [PATCHv3 4/6] block/merge: count bytes instead of sectors

From: Christoph Hellwig <hch@lst.de>
Date: 2022-05-24 06:08:03
Also in: linux-fsdevel

On Mon, May 23, 2022 at 02:01:17PM -0700, Keith Busch wrote:
+	const unsigned max_bytes = get_max_io_size(q, bio) << 9;
+	return bio_split(bio, bytes >> 9, GFP_NOIO, bs);
These should use SECTOR_SHIFT.
 split:
 	*segs = nsegs;
+	bytes = ALIGN_DOWN(bytes, queue_logical_block_size(q));
Please add a comment explaining the added alignment 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