linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
From: Hongbo Li via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: <jaegeuk@kernel.org>, <chao@kernel.org>
Cc: linux-fsdevel@vger.kernel.org, lczerner@redhat.com,
	brauner@kernel.org, Eric Sandeen <sandeen@sandeen.net>,
	linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH 0/9] f2fs: new mount API conversion
Date: Wed, 11 Sep 2024 10:04:07 +0800	[thread overview]
Message-ID: <adbbf133-08e3-4990-85a3-9dfa9d72c9fa@huawei.com> (raw)
In-Reply-To: <20240814023912.3959299-1-lihongbo22@huawei.com>

Is the subject of the email required to be [f2fs-dev][PATCH]?

Thanks,
Hongbo

On 2024/8/14 10:39, Hongbo Li wrote:
> Since many filesystems have done the new mount API conversion,
> we introduce the new mount API conversion in f2fs.
> 
> The series can be applied on top of the current mainline tree
> and the work is based on the patches from Lukas Czerner (has
> done this in ext4[1]). His patch give me a lot of ideas.
> 
> Here is a high level description of the patchset:
> 
> 1. Prepare the f2fs mount parameters required by the new mount
> API and use it for parsing, while still using the old API to
> get mount options string. Split the parameter parsing and
> validation of the parse_options helper into two separate
> helpers.
> 
>    f2fs: Add fs parameter specifications for mount options
>    f2fs: move the option parser into handle_mount_opt
>    f2fs: move option validation into a separate helper
> 
> 2. Remove the use of sb/sbi structure of f2fs from all the
> parsing code, because with the new mount API the parsing is
> going to be done before we even get the super block. In this
> part, we introduce f2fs_fs_context to hold the temporary
> options when parsing. For the simple options check, it has
> to be done during parsing by using f2fs_fs_context structure.
> For the check which needs sb/sbi, we do this during super
> block filling.
> 
>    f2fs: Allow sbi to be NULL in f2fs_printk
>    f2fs: Add f2fs_fs_context to record the mount options
>    f2fs: separate the options parsing and options checking
> 
> 3. Switch the f2fs to use the new mount API for mount and
> remount.
> 
>    f2fs: introduce fs_context_operation structure
>    f2fs: switch to the new mount api
> 
> 4. Cleanup the old unused structures and helpers.
> 
>    f2fs: remove unused structure and functions
> 
> There is still a potential to do some cleanups and perhaps
> refactoring. However that can be done later after the conversion
> to the new mount API which is the main purpose of the patchset.
> 
> [1] https://lore.kernel.org/all/20211021114508.21407-1-lczerner@redhat.com/
> 
> Hongbo Li (9):
>    f2fs: Add fs parameter specifications for mount options
>    f2fs: move the option parser into handle_mount_opt
>    f2fs: move option validation into a separate helper
>    f2fs: Allow sbi to be NULL in f2fs_printk
>    f2fs: Add f2fs_fs_context to record the mount options
>    f2fs: separate the options parsing and options checking
>    f2fs: introduce fs_context_operation structure
>    f2fs: switch to the new mount api
>    f2fs: remove unused structure and functions
> 
>   fs/f2fs/super.c | 2211 ++++++++++++++++++++++++++++-------------------
>   1 file changed, 1341 insertions(+), 870 deletions(-)
> 


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

  parent reply	other threads:[~2024-09-11  2:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-14  2:39 [f2fs-dev] [PATCH 0/9] f2fs: new mount API conversion Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 1/9] f2fs: Add fs parameter specifications for mount options Hongbo Li via Linux-f2fs-devel
2024-08-30 21:00   ` Eric Sandeen
2024-08-14  2:39 ` [f2fs-dev] [PATCH 2/9] f2fs: move the option parser into handle_mount_opt Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 3/9] f2fs: move option validation into a separate helper Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 4/9] f2fs: Allow sbi to be NULL in f2fs_printk Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 5/9] f2fs: Add f2fs_fs_context to record the mount options Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 6/9] f2fs: separate the options parsing and options checking Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 7/9] f2fs: introduce fs_context_operation structure Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 8/9] f2fs: switch to the new mount api Hongbo Li via Linux-f2fs-devel
2024-08-14  2:39 ` [f2fs-dev] [PATCH 9/9] f2fs: remove unused structure and functions Hongbo Li via Linux-f2fs-devel
2024-08-27 11:47 ` [f2fs-dev] [PATCH 0/9] f2fs: new mount API conversion Hongbo Li via Linux-f2fs-devel
2024-08-30 17:07   ` Eric Sandeen
2024-08-31  1:45     ` Hongbo Li via Linux-f2fs-devel
2024-09-11  2:04 ` Hongbo Li via Linux-f2fs-devel [this message]
2024-09-12  1:11   ` Chao Yu via Linux-f2fs-devel
2024-09-12  1:49     ` Hongbo Li via Linux-f2fs-devel
2025-07-11 16:30 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
  -- strict thread matches above, loose matches on Subject: below --
2024-08-12  9:12 Hongbo Li via Linux-f2fs-devel
2024-08-12 10:43 ` Hongbo Li via Linux-f2fs-devel

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=adbbf133-08e3-4990-85a3-9dfa9d72c9fa@huawei.com \
    --to=linux-f2fs-devel@lists.sourceforge.net \
    --cc=brauner@kernel.org \
    --cc=chao@kernel.org \
    --cc=jaegeuk@kernel.org \
    --cc=lczerner@redhat.com \
    --cc=lihongbo22@huawei.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=sandeen@sandeen.net \
    /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).