summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-08-01 11:55:55 -0400
committerDavid Sterba <dsterba@suse.com>2019-09-09 08:59:06 -0400
commit536ea45cba34618669a2f984fa7dff86480823fb (patch)
tree7b860ba174e66cc90cedd189d4125e0586204679
parent32a9991f15a0fc2a55de47db7d22a99f462d6804 (diff)
btrfs: sysfs: unexport btrfs_raid_ktype
The last non-sysfs usage of btrfs_raid_ktype has been moved to a private helper in previous patch so the variable can be made static. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/sysfs.c2
-rw-r--r--fs/btrfs/sysfs.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index 50cb9f9cdbfd..f581ceedf5a9 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -336,7 +336,7 @@ static void release_raid_kobj(struct kobject *kobj)
336 kfree(to_raid_kobj(kobj)); 336 kfree(to_raid_kobj(kobj));
337} 337}
338 338
339struct kobj_type btrfs_raid_ktype = { 339static struct kobj_type btrfs_raid_ktype = {
340 .sysfs_ops = &kobj_sysfs_ops, 340 .sysfs_ops = &kobj_sysfs_ops,
341 .release = release_raid_kobj, 341 .release = release_raid_kobj,
342 .default_groups = raid_groups, 342 .default_groups = raid_groups,
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h
index 403240e81dd2..a359f0b7c20b 100644
--- a/fs/btrfs/sysfs.h
+++ b/fs/btrfs/sysfs.h
@@ -80,7 +80,6 @@ attr_to_btrfs_feature_attr(struct attribute *attr)
80char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags); 80char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags);
81extern const char * const btrfs_feature_set_names[FEAT_MAX]; 81extern const char * const btrfs_feature_set_names[FEAT_MAX];
82extern struct kobj_type space_info_ktype; 82extern struct kobj_type space_info_ktype;
83extern struct kobj_type btrfs_raid_ktype;
84int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, 83int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices,
85 struct btrfs_device *one_device); 84 struct btrfs_device *one_device);
86int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices, 85int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices,