brintos

brintos / linux-shallow public Read only

0
0
Text · 679 B · 28a5263 Raw
28 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _BCACHEFS_REBALANCE_H3#define _BCACHEFS_REBALANCE_H4 5#include "rebalance_types.h"6 7int bch2_set_rebalance_needs_scan(struct bch_fs *, u64 inum);8int bch2_set_fs_needs_rebalance(struct bch_fs *);9 10static inline void rebalance_wakeup(struct bch_fs *c)11{12	struct task_struct *p;13 14	rcu_read_lock();15	p = rcu_dereference(c->rebalance.thread);16	if (p)17		wake_up_process(p);18	rcu_read_unlock();19}20 21void bch2_rebalance_status_to_text(struct printbuf *, struct bch_fs *);22 23void bch2_rebalance_stop(struct bch_fs *);24int bch2_rebalance_start(struct bch_fs *);25void bch2_fs_rebalance_init(struct bch_fs *);26 27#endif /* _BCACHEFS_REBALANCE_H */28