Re: [PATCH] btrfs: use ordered extent to grab the logical address for submission

Qu Wenruo <[email protected]> Fri, 24 Jul 2026 15:48:49 +0930
Newsgroups org.kernel.vger.linux-btrfs
Message-ID <[email protected]>

在 2026/7/24 15:38, Johannes Thumshirn 写道:
> On 7/24/26 6:47 AM, Qu Wenruo wrote:
>> +    /* Try to reuse the existing OE from bbio first. */
>> +    if (bio_ctrl->bbio && bio_ctrl->bbio->ordered &&
>> +        filepos >= bio_ctrl->bbio->ordered->file_offset &&
>> +        filepos < bio_ctrl->bbio->ordered->file_offset +
>> +              bio_ctrl->bbio->ordered->num_bytes) {
> 
> Nit: in_range()?
> 
> 
Thanks, I'll use in_range() in the next update.

If there is no other problems, I'll do the change during merge.

Thanks,
Qu