Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _BCACHEFS_MOVINGGC_H
3#define _BCACHEFS_MOVINGGC_H
4
5u64 bch2_copygc_wait_amount(struct bch_fs *);
6void bch2_copygc_wait_to_text(struct printbuf *, struct bch_fs *);
7
8static inline void bch2_copygc_wakeup(struct bch_fs *c)
9{
10 guard(rcu)();
11 struct task_struct *p = rcu_dereference(c->copygc_thread);
12 if (p)
13 wake_up_process(p);
14}
15
16void bch2_copygc_stop(struct bch_fs *);
17int bch2_copygc_start(struct bch_fs *);
18void bch2_fs_copygc_init(struct bch_fs *);
19
20#endif /* _BCACHEFS_MOVINGGC_H */