Skip to content

Commit

Permalink
Renamed sysfs device attribute from label to group
Browse files Browse the repository at this point in the history
  • Loading branch information
modelrockettier committed Jan 31, 2019
1 parent d1f7014 commit 630b4bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/bcachefs/sysfs.c
Expand Up @@ -180,7 +180,7 @@ rw_attribute(journal_reclaim_delay_ms);

rw_attribute(discard);
rw_attribute(cache_replacement_policy);
rw_attribute(label);
rw_attribute(group);

rw_attribute(copy_gc_enabled);
sysfs_pd_controller_attribute(copy_gc);
Expand Down Expand Up @@ -926,7 +926,7 @@ SHOW(bch2_dev)
sysfs_print(durability, ca->mi.durability);
sysfs_print(discard, ca->mi.discard);

if (attr == &sysfs_label) {
if (attr == &sysfs_group) {
if (ca->mi.group) {
mutex_lock(&c->sb_lock);
bch2_disk_path_to_text(&out, &c->disk_sb,
Expand Down Expand Up @@ -1033,7 +1033,7 @@ STORE(bch2_dev)
mutex_unlock(&c->sb_lock);
}

if (attr == &sysfs_label) {
if (attr == &sysfs_group) {
char *tmp;
int ret;

Expand Down Expand Up @@ -1066,7 +1066,7 @@ struct attribute *bch2_dev_files[] = {
&sysfs_discard,
&sysfs_cache_replacement_policy,
&sysfs_state_rw,
&sysfs_label,
&sysfs_group,

&sysfs_has_data,
&sysfs_iodone,
Expand Down

0 comments on commit 630b4bb

Please sign in to comment.