diff options
author | David Sterba <dsterba@suse.com> | 2019-08-01 17:34:41 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:06 +0200 |
commit | 89439109bc2be5f19c0955d392fb6ea7d0f4ecb3 (patch) | |
tree | d05a7239f0e52a0ffc28844a2f019d61fb27b00a /fs/btrfs/sysfs.h | |
parent | ae4b9b4c7d546b1cabf9e5da67432cfbc7cd7148 (diff) | |
download | talos-op-linux-89439109bc2be5f19c0955d392fb6ea7d0f4ecb3.tar.gz talos-op-linux-89439109bc2be5f19c0955d392fb6ea7d0f4ecb3.zip |
btrfs: move sysfs declarations out of ctree.h
As the header for sysfs code already exists, use it to clean up ctree.h.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r-- | fs/btrfs/sysfs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index 4bb4fe96d4bd..4f622989b594 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h @@ -35,6 +35,12 @@ struct btrfs_feature_attr { u64 feature_bit; }; +/* For raid type sysfs entries */ +struct raid_kobject { + u64 flags; + struct kobject kobj; +}; + #define BTRFS_FEAT_ATTR(_name, _feature_set, _feature_prefix, _feature_bit) \ static struct btrfs_feature_attr btrfs_attr_features_##_name = { \ .kobj_attr = __INIT_KOBJ_ATTR(_name, S_IRUGO, \ @@ -86,4 +92,9 @@ void btrfs_sysfs_remove_fsid(struct btrfs_fs_devices *fs_devs); void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info, u64 bit, enum btrfs_feature_set set); +int __init btrfs_init_sysfs(void); +void __cold btrfs_exit_sysfs(void); +int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info); +void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info); + #endif |