summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-07 05:58:01 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-08 23:29:21 +0200
commit24b27975a9866f32abb46b74834e963700624fcd (patch)
treee92d598b5b599fd40ae5af2a4e0a37ccba17bf00 /fs/bcachefs/bcachefs.h
parentbcachefs: do reflink_p repair from BTREE_TRIGGER_check_repair (diff)
downloadlinux-24b27975a9866f32abb46b74834e963700624fcd.tar.xz
linux-24b27975a9866f32abb46b74834e963700624fcd.zip
bcachefs: Kill gc_init_recurse()
This unifies the online and offline btree gc passes; we're not yet running it online. We now iterate over one level of the btree at a time - the same as check_extents_to_backpointers(); this ordering preserves order of keys regardless of btree splits and merges, which will be important when we re-enable online gc. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index 2345e090d8a1..82544f826c58 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -519,8 +519,8 @@ enum gc_phase {
struct gc_pos {
enum gc_phase phase;
+ u16 level;
struct bpos pos;
- unsigned level;
};
struct reflink_gc {