btrfs: split out the mount option validation code into its own helper
authorJosef Bacik <josef@toxicpanda.com>
Wed, 22 Nov 2023 17:17:38 +0000 (12:17 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:03 +0000 (20:27 +0100)
commit2b41b19dd6d063a3dca8c1f855a056515f0f678d
treead0a77cb996fc26f31957ab1f7b9e065f9db0b9e
parentf67d922edb4e95a4a56d07d5d40a76dd4f23a85b
btrfs: split out the mount option validation code into its own helper

We're going to need to validate mount options after they're all parsed
with the new mount API, split this code out into its own helper so we
can use it when we swap over to the new mount API.

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>
[ minor adjustments in the messages ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c