LCOV - code coverage report
Current view: top level - fs/btrfs - super.h (source / functions) Hit Total Coverage
Test: fstests of 6.5.0-rc3-djwx @ Mon Jul 31 20:08:22 PDT 2023 Lines: 9 9 100.0 %
Date: 2023-07-31 20:08:22 Functions: 2 2 100.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   780585801 :         return sb->s_fs_info;
      15             : }
      16             : 
      17          21 : static inline void btrfs_set_sb_rdonly(struct super_block *sb)
      18             : {
      19          21 :         sb->s_flags |= SB_RDONLY;
      20          21 :         set_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
      21          21 : }
      22             : 
      23           2 : static inline void btrfs_clear_sb_rdonly(struct super_block *sb)
      24             : {
      25           2 :         sb->s_flags &= ~SB_RDONLY;
      26           2 :         clear_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
      27           2 : }
      28             : 
      29             : #endif

Generated by: LCOV version 1.14