diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-25 23:37:06 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:02 -0400 |
commit | fc0ee376bb5b08844198fba13fb809102afd0b29 (patch) | |
tree | 30660fa3bae2e4b4fb72d7c835837d4f01800c55 /fs/bcachefs/bcachefs.h | |
parent | db32bb9a5fd6bd7c7031b4b9d6c9a5e27b651e5d (diff) | |
download | linux-stable-fc0ee376bb5b08844198fba13fb809102afd0b29.tar.gz linux-stable-fc0ee376bb5b08844198fba13fb809102afd0b29.tar.bz2 linux-stable-fc0ee376bb5b08844198fba13fb809102afd0b29.zip |
bcachefs: Don't reuse reflink btree keyspace
We've been seeing difficult to debug "missing indirect extent" bugs,
that fsck doesn't seem to find.
One possibility is that there was a missing indirect extent, but then a
new indirect extent was created at the location of the previous indirect
extent.
This patch eliminates that possibility by always creating new indirect
extents right after the last one, at the end of the reflink btree.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index 39fd15447753..0dfa42e297e0 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -963,7 +963,6 @@ struct bch_fs { struct bio_set ec_bioset; /* REFLINK */ - u64 reflink_hint; reflink_gc_table reflink_gc_table; size_t reflink_gc_nr; |