From: David Sterba <dsterba@suse.cz>
To: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Cc: Christian Brauner <brauner@kernel.org>, Chris Mason <clm@fb.com>,
Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>, Nick Terrell <terrelln@fb.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH 0/2] btrfs: port to new mount api
Date: Tue, 27 Jun 2023 16:08:09 +0200 [thread overview]
Message-ID: <20230627140809.GA16168@suse.cz> (raw)
In-Reply-To: <b9028f9d-d947-3813-9677-c49bd2b72d53@wdc.com>
On Tue, Jun 27, 2023 at 11:51:01AM +0000, Johannes Thumshirn wrote:
> On 26.06.23 16:19, Christian Brauner wrote:
> > This whole thing ends up being close to a rewrite in some places. I
> > haven't found a really elegant way to split this into smaller chunks.
>
> You'll probably hate me for this, but you could split it up a bit by
> first doing the move of the old mount code into params.c and then do the
> rewrite for the new mount API.
The patch needs more finer split than just that. Replacing the entire
mount code like that will introduce bugs that users will hit for sure.
We have some weird mount option combinations or constraints, and we
don't have a 100% testsuite coverage.
The switch to the new API needs to be done in one patch, that's obvious,
however all the code does not need to be in one patch. I suggest to
split generic preparatory changes, add basic framework for the new API,
then add the easy options, then by one the complicated ones, then do the
switch, then do the cleanup and removal of the old code. Yes it's more
work but if we have to debug anything in the future it'll be narrowed
down to a few short patches.
Previsous work (https://lore.kernel.org/linux-btrfs/20200812163654.17080-1-marcos@mpdesouza.com/)
has patches split but it's not following the suggestions.
next prev parent reply other threads:[~2023-06-27 14:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-26 14:16 [PATCH 0/2] btrfs: port to new mount api Christian Brauner
2023-06-26 14:16 ` [PATCH 1/2] fs: indicate request originates from old " Christian Brauner
2023-06-26 14:16 ` [PATCH 2/2] btrfs: port to new " Christian Brauner
2023-06-27 11:51 ` [PATCH 0/2] " Johannes Thumshirn
2023-06-27 14:08 ` David Sterba [this message]
2023-06-27 15:03 ` Christian Brauner
2023-06-28 11:01 ` 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=20230627140809.GA16168@suse.cz \
--to=dsterba@suse.cz \
--cc=Johannes.Thumshirn@wdc.com \
--cc=brauner@kernel.org \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=terrelln@fb.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;
as well as URLs for NNTP newsgroup(s).