1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _BCACHEFS_MOVINGGC_H 3 #define _BCACHEFS_MOVINGGC_H 4 5 u64 bch2_copygc_wait_amount(struct bch_fs *); 6 void bch2_copygc_wait_to_text(struct printbuf *, struct bch_fs *); 7 bch2_copygc_wakeup(struct bch_fs * c)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 16 void bch2_copygc_stop(struct bch_fs *); 17 int bch2_copygc_start(struct bch_fs *); 18 void bch2_fs_copygc_init(struct bch_fs *); 19 20 #endif /* _BCACHEFS_MOVINGGC_H */ 21