diff options
author | David Sterba <dsterba@suse.com> | 2019-08-01 19:07:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:07 +0200 |
commit | f10152bcc962cae6e78ae4eecfa22270f481c0ff (patch) | |
tree | 31596741f22f7f5683f717ae214104fb308becd2 /fs/btrfs/sysfs.h | |
parent | btrfs: sysfs: unexport space_info_ktype (diff) | |
download | linux-f10152bcc962cae6e78ae4eecfa22270f481c0ff.tar.xz linux-f10152bcc962cae6e78ae4eecfa22270f481c0ff.zip |
btrfs: sysfs: replace direct access to feature set names with a helper
In order to unexport the feature type array, add a helper for the
enum-to-string conversion.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r-- | fs/btrfs/sysfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index 0c06f2adfae8..d8a6ab1bfde7 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h @@ -78,7 +78,7 @@ attr_to_btrfs_feature_attr(struct attribute *attr) } char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags); -extern const char * const btrfs_feature_set_names[FEAT_MAX]; +const char * const btrfs_feature_set_name(enum btrfs_feature_set set); int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, struct btrfs_device *one_device); int btrfs_sysfs_rm_device_link(struct btrfs_fs_devices *fs_devices, |