LCOV - code coverage report
Current view: top level - fs/btrfs - super.h (source / functions) Hit Total Coverage
Test: fstests of 6.5.0-rc3-acha @ Mon Jul 31 20:08:06 PDT 2023 Lines: 0 9 0.0 %
Date: 2023-07-31 20:08:07 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /* SPDX-License-Identifier: GPL-2.0 */
       2             : 
       3             : #ifndef BTRFS_SUPER_H
       4             : #define BTRFS_SUPER_H
       5             : 
       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,
      10             :                                           u64 subvol_objectid);
      11             : 
      12             : static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb)
      13             : {
      14           0 :         return sb->s_fs_info;
      15             : }
      16             : 
      17           0 : static inline void btrfs_set_sb_rdonly(struct super_block *sb)
      18             : {
      19           0 :         sb->s_flags |= SB_RDONLY;
      20           0 :         set_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
      21           0 : }
      22             : 
      23           0 : static inline void btrfs_clear_sb_rdonly(struct super_block *sb)
      24             : {
      25           0 :         sb->s_flags &= ~SB_RDONLY;
      26           0 :         clear_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
      27           0 : }
      28             : 
      29             : #endif

Generated by: LCOV version 1.14