1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BUCKETS_WAITING_FOR_JOURNAL_H
3 #define _BUCKETS_WAITING_FOR_JOURNAL_H
4 
5 #include "buckets_waiting_for_journal_types.h"
6 
7 bool bch2_bucket_needs_journal_commit(struct buckets_waiting_for_journal *,
8 				      u64, unsigned, u64);
9 int bch2_set_bucket_needs_journal_commit(struct buckets_waiting_for_journal *,
10 					 u64, unsigned, u64, u64);
11 
12 void bch2_fs_buckets_waiting_for_journal_exit(struct bch_fs *);
13 int bch2_fs_buckets_waiting_for_journal_init(struct bch_fs *);
14 
15 #endif /* _BUCKETS_WAITING_FOR_JOURNAL_H */
16