All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 0/3] btrfs: separate BLOCK_GROUP_TREE feature from extent-tree-v2
Date: Tue, 26 Jul 2022 23:52:52 +0200	[thread overview]
Message-ID: <20220726215252.GQ13489@twin.jikos.cz> (raw)
In-Reply-To: <56492a5b-8d98-38af-50f2-57a75a3417fc@gmx.com>

On Wed, Jul 27, 2022 at 05:47:25AM +0800, Qu Wenruo wrote:
> 
> 
> On 2022/7/27 01:59, David Sterba wrote:
> > On Wed, Jul 20, 2022 at 01:06:58PM +0800, Qu Wenruo wrote:
> >> Qu Wenruo (3):
> >>    btrfs: enhance unsupported compat RO flags handling
> >>    btrfs: don't save block group root into super block
> >>    btrfs: separate BLOCK_GROUP_TREE compat RO flag from EXTENT_TREE_V2
> >
> > It's short series and I don't see any new code to use the separate tree
> > for bg items, so it's on top of the extent tree v2, right?
> 
> Yes, it's based on extent tree v2 prepare code that is already in the
> mainline code.
> 
> >
> >  From the last time we were experimenting with the block group tree, I
> > was trying to avoid a new tree but there were problems. So, I think we
> > can go with the separate tree that you suggest. We have reports about
> > slow mount and people use large filesystems, so this is justified.
> >
> > Will it be possible to convert existing filesystem to use the bg tree?
> 
> Yes, that's completely planned as the old bg tree code, btrfs-progs
> convert tool will be provided (mostly in btrfstune).

Ok, good. I'm thinking if we should go for an online conversion too or
not, because on a many-TB filesystem it would possibly take a long time
but the benefit is not to unmount and do the conversion.

We could copy what the free space conversion does on remount, for bg
tree implemented as "set some flag via sysfs" and ten trigger remount
that does all th work. It should be less or comparable work to free
space tree conversion, it's basically copying the block group items to
the new tree and deleting from extent tree.

  reply	other threads:[~2022-07-26 21:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20  5:06 [PATCH v2 0/3] btrfs: separate BLOCK_GROUP_TREE feature from extent-tree-v2 Qu Wenruo
2022-07-20  5:06 ` [PATCH v2 1/3] btrfs: enhance unsupported compat RO flags handling Qu Wenruo
2022-07-20 10:20   ` Nikolay Borisov
2022-07-20  5:07 ` [PATCH v2 2/3] btrfs: don't save block group root into super block Qu Wenruo
2022-07-20  5:07 ` [PATCH v2 3/3] btrfs: separate BLOCK_GROUP_TREE compat RO flag from EXTENT_TREE_V2 Qu Wenruo
2022-07-26 17:59 ` [PATCH v2 0/3] btrfs: separate BLOCK_GROUP_TREE feature from extent-tree-v2 David Sterba
2022-07-26 21:47   ` Qu Wenruo
2022-07-26 21:52     ` David Sterba [this message]
2022-07-26 22:09       ` Qu Wenruo
2022-07-28 10:02         ` Qu Wenruo
2022-08-03 19:10           ` David Sterba

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=20220726215252.GQ13489@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo.btrfs@gmx.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.