1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _BUCKETS_WAITING_FOR_JOURNAL_TYPES_H |
3 | #define _BUCKETS_WAITING_FOR_JOURNAL_TYPES_H |
4 | |
5 | #include <linux/siphash.h> |
6 | |
7 | struct bucket_hashed { |
8 | u64 dev_bucket; |
9 | u64 journal_seq; |
10 | }; |
11 | |
12 | struct buckets_waiting_for_journal_table { |
13 | unsigned bits; |
14 | u64 hash_seeds[3]; |
15 | struct bucket_hashed d[]; |
16 | }; |
17 | |
18 | struct buckets_waiting_for_journal { |
19 | struct mutex lock; |
20 | struct buckets_waiting_for_journal_table *t; |
21 | }; |
22 | |
23 | #endif /* _BUCKETS_WAITING_FOR_JOURNAL_TYPES_H */ |
24 | |