1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_REBALANCE_TYPES_H
3 #define _BCACHEFS_REBALANCE_TYPES_H
5 #include "move_types.h"
13 struct bch_fs_rebalance {
14 struct task_struct __rcu *thread;
15 struct bch_pd_controller pd;
17 atomic64_t work_unknown_dev;
19 enum rebalance_state state;
20 unsigned long throttled_until_iotime;
21 unsigned long throttled_until_cputime;
22 struct bch_move_stats move_stats;
27 #endif /* _BCACHEFS_REBALANCE_TYPES_H */