From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>,
Qu Wenruo <wqu@suse.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] btrfs: scrub: avoid unnecessary extent tree search for striped profiles
Date: Tue, 15 Aug 2023 18:43:44 +0800 [thread overview]
Message-ID: <7a1d68c1-5162-4063-a6eb-3fa993e49d1e@gmx.com> (raw)
In-Reply-To: <431afc8c-683f-4767-b386-7527123084cc@wdc.com>
On 2023/8/15 18:15, Johannes Thumshirn wrote:
> On 15.08.23 09:17, Qu Wenruo wrote:
>> +
>> + /* No more extent item. all done. */
>> + if (sctx->found_next >= bg->start + bg->length) {
>> + sctx->stat.last_physical = orig_physical +
>> + bg->length / (map->num_stripes / map->sub_stripes);
>> + return 0;
>> + }
>
> bg->length is a u64 so you'll need div_u64() here as well.
>
Yep, let me check if I have any variable at hand just like the
@physical_end one in the RAID56 realm.
Thanks,
Qu
next prev parent reply other threads:[~2023-08-15 10:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 7:16 [PATCH] btrfs: scrub: avoid unnecessary extent tree search for striped profiles Qu Wenruo
2023-08-15 9:56 ` kernel test robot
2023-08-15 10:06 ` kernel test robot
2023-08-15 10:15 ` Johannes Thumshirn
2023-08-15 10:43 ` Qu Wenruo [this message]
2023-08-15 10:17 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a1d68c1-5162-4063-a6eb-3fa993e49d1e@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=Johannes.Thumshirn@wdc.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox