diff options
author | Tomohiro Misono <misono.tomohiro@jp.fujitsu.com> | 2018-05-16 17:09:26 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:23:39 +0200 |
commit | 6c52157fa9378efc0ff24c5f2602d500997f59db (patch) | |
tree | cee575f20efb013b1e501c63c218a84adb20d18c /fs/btrfs/sysfs.h | |
parent | 6dac13f8e233e50b69df831f6e598a1efb6d3aaa (diff) | |
download | linux-6c52157fa9378efc0ff24c5f2602d500997f59db.tar.gz linux-6c52157fa9378efc0ff24c5f2602d500997f59db.tar.bz2 linux-6c52157fa9378efc0ff24c5f2602d500997f59db.zip |
btrfs: sysfs: Use enum/define value for feature array definitions
Use existing named values instead of the raw numbers.
Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r-- | fs/btrfs/sysfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index b567560d9aa9..c6ee600aff89 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h @@ -9,7 +9,7 @@ extern u64 btrfs_debugfs_test; enum btrfs_feature_set { - FEAT_COMPAT, + FEAT_COMPAT = 0, FEAT_COMPAT_RO, FEAT_INCOMPAT, FEAT_MAX @@ -77,7 +77,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[3]; +extern const char * const btrfs_feature_set_names[FEAT_MAX]; extern struct kobj_type space_info_ktype; extern struct kobj_type btrfs_raid_ktype; int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, |