1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _BCACHEFS_MOVINGGC_H 3 #define _BCACHEFS_MOVINGGC_H 4 5 unsigned long 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 rcu_read_lock(); 11 struct task_struct *p = rcu_dereference(c->copygc_thread); 12 if (p) 13 wake_up_process(p); 14 rcu_read_unlock(); 15 } 16 17 void bch2_copygc_stop(struct bch_fs *); 18 int bch2_copygc_start(struct bch_fs *); 19 void bch2_fs_copygc_init(struct bch_fs *); 20 21 #endif /* _BCACHEFS_MOVINGGC_H */ 22