From: Goffredo Baroncelli <kreijack@inwind.it>
To: Hugo Mills <hugo@carfax.org.uk>
Cc: Hans van Kranenburg <hans.van.kranenburg@mendix.com>,
Ashish Samant <ashish.samant@oracle.com>,
linux-btrfs@vger.kernel.org, bo.li.liu@oracle.com
Subject: Re: [PATCH] Btrfs-progs: add check-only option for balance
Date: Tue, 14 Jun 2016 20:55:53 +0200 [thread overview]
Message-ID: <d8ca90b3-3eca-1cb0-07db-d5f280b184e5@inwind.it> (raw)
In-Reply-To: <20160614181607.GM5437@carfax.org.uk>
On 2016-06-14 20:16, Hugo Mills wrote:
[....]
>>
>> You are right. If the last item in the buffer is a EXTENT_ITEM, and the
>> next item in the disk is a BLOCK_GROUP_ITEM with the same object id,
>> the latter would be skipped.
>>
>> I was find always terrible the BTRFS_IOC_TREE_SEARCH; if the min_*
>> fields was separate from the key, the use of this ioctl would
>> be a lot simpler. Moreover in most case (like this one), it would be
>> reduced the context switches, because the ioctl would return
>> only valid data.
>
> There's an argument for implementing it. However, given the way the
> indexing works (concatenation of the key elements, resulting in
> lexical ordering of keys), you'd still have to do exactly the same
> work, only in the kernel instead. The only thing you really win is the
> number of context switches.
>
> It would really have to be a new ioctl, too. You can't change the
> behaviour of the existing one.
>
> Hugo.
It was 2010...
http://www.spinics.net/lists/linux-btrfs/msg07636.html
>
>>>
>>> So, the important line here was: "...when the extent_item just
>>> manages to squeeze in as last result into the current result buffer
>>> from the ioctl..."
>>>
>>
>>
>
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
next prev parent reply other threads:[~2016-06-14 18:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 21:46 [PATCH] Btrfs-progs: add check-only option for balance Ashish Samant
2016-06-10 17:57 ` Goffredo Baroncelli
2016-06-10 20:47 ` Hans van Kranenburg
2016-06-12 18:41 ` Goffredo Baroncelli
2016-06-12 18:53 ` Hans van Kranenburg
2016-06-14 18:11 ` Goffredo Baroncelli
2016-06-14 18:16 ` Hugo Mills
2016-06-14 18:55 ` Goffredo Baroncelli [this message]
2016-06-14 18:21 ` Ashish Samant
-- strict thread matches above, loose matches on Subject: below --
2016-01-14 23:12 Liu Bo
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=d8ca90b3-3eca-1cb0-07db-d5f280b184e5@inwind.it \
--to=kreijack@inwind.it \
--cc=ashish.samant@oracle.com \
--cc=bo.li.liu@oracle.com \
--cc=hans.van.kranenburg@mendix.com \
--cc=hugo@carfax.org.uk \
--cc=linux-btrfs@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).