Lines Matching refs:rebalance
18 #include "rebalance.h"
35 return &entry->rebalance;
415 struct bch_fs_rebalance *r = &trans->c->rebalance;
464 struct bch_fs_rebalance *r = &trans->c->rebalance;
512 struct bch_fs_rebalance *r = &c->rebalance;
535 c->rebalance.on_battery);
542 struct bch_fs_rebalance *r = &c->rebalance;
610 struct bch_fs_rebalance *r = &c->rebalance;
638 struct bch_fs_rebalance *r = &c->rebalance;
682 t = rcu_dereference(c->rebalance.thread);
699 c->rebalance.pd.rate.rate = UINT_MAX;
700 bch2_ratelimit_reset(&c->rebalance.pd.rate);
702 p = rcu_dereference_protected(c->rebalance.thread, 1);
703 c->rebalance.thread = NULL;
719 if (c->rebalance.thread)
725 p = kthread_create(bch2_rebalance_thread, c, "bch-rebalance/%s", c->name);
727 bch_err_msg(c, ret, "creating rebalance thread");
732 rcu_assign_pointer(c->rebalance.thread, p);
743 struct bch_fs *c = container_of(nb, struct bch_fs, rebalance.power_notifier);
745 c->rebalance.on_battery = !power_supply_is_system_supplied();
754 power_supply_unreg_notifier(&c->rebalance.power_notifier);
760 struct bch_fs_rebalance *r = &c->rebalance;
832 "rebalance work incorrectly set\n%s", buf.buf)) {
841 "rebalance work incorrectly unset\n%s", buf.buf)) {