btrfs: move the device specific mount options to super.c
authorJosef Bacik <josef@toxicpanda.com>
Wed, 22 Nov 2023 17:17:51 +0000 (12:17 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:04 +0000 (20:27 +0100)
commit41d46b290ef9b5563ae5b3c46cf86e0ae1e4bf95
treeb770a22268451e5784a58278245aa820570b5480
parentad21f15b0f795daf8723dddbcb61797d4f1c2aed
btrfs: move the device specific mount options to super.c

We add these mount options based on the fs_devices settings, which can
be set once we've opened the fs_devices.  Move these into their own
helper and call it from get_tree_super.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/super.c