aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/sysfs.h
diff options
context:
space:
mode:
authorDavid Sterba2019-08-01 18:50:16 +0200
committerDavid Sterba2019-09-09 14:59:06 +0200
commitb882327a774041d5710e37da3286e25278a1947f (patch)
tree59ee6d29373db7b60f471600e40a2ddb7ecdede8 /fs/btrfs/sysfs.h
parent536ea45cba34618669a2f984fa7dff86480823fb (diff)
btrfs: factor out sysfs code for creating space infos
Move creation of data/metadata/system space info directories to sysfs.c. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r--fs/btrfs/sysfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h
index a359f0b7c20b..6baf9ff0519b 100644
--- a/fs/btrfs/sysfs.h
+++ b/fs/btrfs/sysfs.h
@@ -96,5 +96,7 @@ 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);
void btrfs_sysfs_add_block_group_type(struct btrfs_block_group_cache *cache);
+int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
+ struct btrfs_space_info *space_info);
#endif