]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: unify the ro checking for mount options
authorJosef Bacik <josef@toxicpanda.com>
Fri, 16 Oct 2020 15:29:13 +0000 (11:29 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:39 +0000 (15:53 +0100)
commitdababf3f3d0c99dc2c0e60d1f8abbd9122d710c8
tree7ce1404904afae0b314148e01f05e303241623c5
parentae4dc75ccb38a9acf2a66f84bdd0398bb50375f0
btrfs: unify the ro checking for mount options

We're going to be adding more options that require RDONLY, so add a
helper to do the check and error out if we don't have RDONLY set.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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