xref: /linux/fs/bcachefs/buckets_waiting_for_journal.h (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
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