]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/rebalance_types.h
Update bcachefs sources to f7670cba39 bcachefs: Fix for building in userspace
[bcachefs-tools-debian] / libbcachefs / rebalance_types.h
1 #ifndef _BCACHEFS_REBALANCE_TYPES_H
2 #define _BCACHEFS_REBALANCE_TYPES_H
3
4 #include "move_types.h"
5
6 enum rebalance_state {
7         REBALANCE_WAITING,
8         REBALANCE_THROTTLED,
9         REBALANCE_RUNNING,
10 };
11
12 struct bch_fs_rebalance {
13         struct task_struct __rcu *thread;
14         struct bch_pd_controller pd;
15
16         atomic64_t              work_unknown_dev;
17
18         enum rebalance_state    state;
19         unsigned long           throttled_until_iotime;
20         unsigned long           throttled_until_cputime;
21         struct bch_move_stats   move_stats;
22
23         unsigned                enabled:1;
24 };
25
26 #endif /* _BCACHEFS_REBALANCE_TYPES_H */