]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: use new mount API
authorThomas Bertschinger <tahbertschinger@gmail.com>
Tue, 28 May 2024 04:36:11 +0000 (22:36 -0600)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:12 +0000 (19:00 -0400)
commit929d954330142a6273697b2cbf855f0f904a12f5
treef401117aa3c99a76a1adbfdbe0f4b789c605fc34
parent1c12d1caf8d627d8b791f4dc25af2522dac7cd10
bcachefs: use new mount API

This updates bcachefs to use the new mount API:

- Update the file_system_type to use the new init_fs_context()
  function.

- Define the new fs_context_operations functions.

- No longer register bch2_mount() and bch2_remount(); these are now
  called via the new fs_context functions.

- Define a new helper type, bch2_opts_parse that includes a struct
  bch_opts and additionally a printbuf used to save options that can't
  be parsed until after the FS is opened. This enables us to parse as
  many options as possible prior to opening the filesystem while saving
  those options that need the open FS for later parsing.

Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c
fs/bcachefs/opts.h