• Thomas Bertschinger's avatar
    bcachefs: use new mount API · 929d9543
    Thomas Bertschinger authored
    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: default avatarThomas Bertschinger <tahbertschinger@gmail.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    929d9543
opts.h 19.5 KB