1 /* SPDX-License-Identifier: GPL-2.0 */
6 int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
7 unsigned long new_flags);
8 int btrfs_sync_fs(struct super_block *sb, int wait);
9 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
12 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb)
17 static inline void btrfs_set_sb_rdonly(struct super_block *sb)
19 sb->s_flags |= SB_RDONLY;
20 set_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
23 static inline void btrfs_clear_sb_rdonly(struct super_block *sb)
25 sb->s_flags &= ~SB_RDONLY;
26 clear_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);