summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sysfs.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-17 20:24:54 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:54 -0400
commit51c66fedc0ea4a16d5d45f94a619c43897018da8 (patch)
tree76d3b6c4c61ad968d9cdc5842c85086fef9174bd /fs/bcachefs/sysfs.c
parent5bbe4bf95bdd18500c5de52e5d38a91fbb5f6234 (diff)
bcachefs: Rip out copygc pd controller
We have a separate mechanism for ratelimiting copygc now - the pd controller has only been causing problems. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r--fs/bcachefs/sysfs.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c
index 1f31458ffec9..ff93e5ba9f41 100644
--- a/fs/bcachefs/sysfs.c
+++ b/fs/bcachefs/sysfs.c
@@ -189,7 +189,6 @@ rw_attribute(label);
rw_attribute(copy_gc_enabled);
read_attribute(copy_gc_wait);
-sysfs_pd_controller_attribute(copy_gc);
rw_attribute(rebalance_enabled);
sysfs_pd_controller_attribute(rebalance);
@@ -198,8 +197,6 @@ rw_attribute(promote_whole_extents);
read_attribute(new_stripes);
-rw_attribute(pd_controllers_update_seconds);
-
read_attribute(io_timers_read);
read_attribute(io_timers_write);
@@ -331,12 +328,8 @@ SHOW(bch2_fs)
sysfs_printf(copy_gc_enabled, "%i", c->copy_gc_enabled);
- sysfs_print(pd_controllers_update_seconds,
- c->pd_controllers_update_seconds);
-
sysfs_printf(rebalance_enabled, "%i", c->rebalance.enabled);
sysfs_pd_controller_show(rebalance, &c->rebalance.pd); /* XXX */
- sysfs_pd_controller_show(copy_gc, &c->copygc_pd);
sysfs_hprint(copy_gc_wait,
max(0LL, c->copygc_wait -
atomic64_read(&c->io_clock[WRITE].now)) << 9);
@@ -447,10 +440,7 @@ STORE(bch2_fs)
return ret;
}
- sysfs_strtoul(pd_controllers_update_seconds,
- c->pd_controllers_update_seconds);
sysfs_pd_controller_store(rebalance, &c->rebalance.pd);
- sysfs_pd_controller_store(copy_gc, &c->copygc_pd);
sysfs_strtoul(promote_whole_extents, c->promote_whole_extents);
@@ -572,7 +562,6 @@ struct attribute *bch2_fs_internal_files[] = {
&sysfs_rebalance_enabled,
&sysfs_rebalance_work,
sysfs_pd_controller_files(rebalance),
- sysfs_pd_controller_files(copy_gc),
&sysfs_new_stripes,