OSDN Git Service

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)
commitd70bf7484f728704454c0566814458bf6d6c7cf3
tree7ce1404904afae0b314148e01f05e303241623c5
parenta6889caf6ec6ec32f19a02a9118410f39fc84fe2
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