]> Git Repo - linux.git/blob - fs/bcachefs/btree_gc_types.h
cifs: Add a tracepoint to track credits involved in R/W requests
[linux.git] / fs / bcachefs / btree_gc_types.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_BTREE_GC_TYPES_H
3 #define _BCACHEFS_BTREE_GC_TYPES_H
4
5 #include <linux/generic-radix-tree.h>
6
7 enum gc_phase {
8         GC_PHASE_not_running,
9         GC_PHASE_start,
10         GC_PHASE_sb,
11         GC_PHASE_btree,
12 };
13
14 struct gc_pos {
15         enum gc_phase           phase:8;
16         enum btree_id           btree:8;
17         u16                     level;
18         struct bpos             pos;
19 };
20
21 struct reflink_gc {
22         u64             offset;
23         u32             size;
24         u32             refcount;
25 };
26
27 typedef GENRADIX(struct reflink_gc) reflink_gc_table;
28
29 #endif /* _BCACHEFS_BTREE_GC_TYPES_H */
This page took 0.032898 seconds and 4 git commands to generate.