Btrfs: sysfs: add pointer to access fs_info from fs_devices
[deliverable/linux.git] / fs / btrfs / volumes.h
index ebc31331a83746b23b4e99ac146b25fc03b31cc3..210a64390f400915cb623ff8a4fd02738859a1a5 100644 (file)
@@ -253,6 +253,12 @@ struct btrfs_fs_devices {
         * nonrot flag set
         */
        int rotating;
+
+       struct btrfs_fs_info *fs_info;
+       /* sysfs kobjects */
+       struct kobject super_kobj;
+       struct kobject *device_dir_kobj;
+       struct completion kobj_unregister;
 };
 
 #define BTRFS_BIO_INLINE_CSUM_SIZE     64
@@ -537,5 +543,8 @@ static inline void unlock_chunks(struct btrfs_root *root)
        mutex_unlock(&root->fs_info->chunk_mutex);
 }
 
+struct list_head *btrfs_get_fs_uuids(void);
+void btrfs_set_fs_info_ptr(struct btrfs_fs_info *fs_info);
+void btrfs_reset_fs_info_ptr(struct btrfs_fs_info *fs_info);
 
 #endif
This page took 0.026995 seconds and 5 git commands to generate.