mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
Some checks failed
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled
21 lines
536 B
C
21 lines
536 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_MOVINGGC_H
|
|
#define _BCACHEFS_MOVINGGC_H
|
|
|
|
u64 bch2_copygc_wait_amount(struct bch_fs *);
|
|
void bch2_copygc_wait_to_text(struct printbuf *, struct bch_fs *);
|
|
|
|
static inline void bch2_copygc_wakeup(struct bch_fs *c)
|
|
{
|
|
guard(rcu)();
|
|
struct task_struct *p = rcu_dereference(c->copygc_thread);
|
|
if (p)
|
|
wake_up_process(p);
|
|
}
|
|
|
|
void bch2_copygc_stop(struct bch_fs *);
|
|
int bch2_copygc_start(struct bch_fs *);
|
|
void bch2_fs_copygc_init(struct bch_fs *);
|
|
|
|
#endif /* _BCACHEFS_MOVINGGC_H */
|