Thread (101 messages) 101 messages, 11 authors, 2022-11-11

Re: [PATCH 16/17] btrfs: split zone append bios in btrfs_submit_bio

From: Christoph Hellwig <hch@lst.de>
Date: 2022-09-05 14:25:54
Also in: linux-btrfs, linux-fsdevel

On Mon, Sep 05, 2022 at 01:15:16PM +0000, Johannes Thumshirn wrote:
On 01.09.22 09:43, Christoph Hellwig wrote:
quoted
+		ASSERT(btrfs_dev_is_sequential(dev, physical));
+		bio->bi_iter.bi_sector = zone_start >> SECTOR_SHIFT;
That ASSERT() will trigger on conventional zones, won't it?
The assert is inside a

	if (bio_op(bio) == REQ_OP_ZONE_APPEND) {

btrfs_submit_chunk only sets the op to REQ_OP_ZONE_APPEND when
btrfs_use_zone_append returns true, which excludes conventional zones.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help