btrfs: add reconfigure callback for fs_context
authorJosef Bacik <josef@toxicpanda.com>
Wed, 22 Nov 2023 17:17:47 +0000 (12:17 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:04 +0000 (20:27 +0100)
commiteddb1a433f2631ef211b3253ba7e7aba20310ebc
treed92dd835db9c1528e04d23ae6e10512b0db07c5c
parent0f85e244dfc5c22cb5e115ccad651df65e6fd68a
btrfs: add reconfigure callback for fs_context

This is what is used to remount the file system with the new mount API.
Because the mount options are parsed separately and one at a time I've
added a helper to emit the mount options after the fact once the mount
is configured, this matches the dmesg output for what happens with the
old mount API.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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/super.c
fs/btrfs/zoned.c
fs/btrfs/zoned.h