summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r--fs/btrfs/sysfs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index 85cf3bfc9f62..89781d941645 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -21,6 +21,22 @@
21static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj); 21static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj);
22static inline struct btrfs_fs_devices *to_fs_devs(struct kobject *kobj); 22static inline struct btrfs_fs_devices *to_fs_devs(struct kobject *kobj);
23 23
24static struct btrfs_feature_attr *to_btrfs_feature_attr(struct kobj_attribute *a)
25{
26 return container_of(a, struct btrfs_feature_attr, kobj_attr);
27}
28
29static struct kobj_attribute *attr_to_btrfs_attr(struct attribute *attr)
30{
31 return container_of(attr, struct kobj_attribute, attr);
32}
33
34static struct btrfs_feature_attr *attr_to_btrfs_feature_attr(
35 struct attribute *attr)
36{
37 return to_btrfs_feature_attr(attr_to_btrfs_attr(attr));
38}
39
24static u64 get_features(struct btrfs_fs_info *fs_info, 40static u64 get_features(struct btrfs_fs_info *fs_info,
25 enum btrfs_feature_set set) 41 enum btrfs_feature_set set)
26{ 42{