diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-13 09:43:29 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:11 +0300 |
commit | 66487c54ad8207ef1c029df45ffaeaafbcc11f77 (patch) | |
tree | 4d88aa0241e4bd202877f970fdeec86a9e1b6d5e /README | |
parent | fa5bed376a184f2dcb48dba5c076583ed6c61340 (diff) | |
download | linux-66487c54ad8207ef1c029df45ffaeaafbcc11f77.tar.xz |
bcachefs: Fix is_ancestor bitmap
The is_ancestor bitmap is at optimization for bch2_snapshot_is_ancestor;
once we get sufficiently close to the ancestor ID we're searching for we
test a bitmap.
But initialization of the is_ancestor bitmap was broken; we do it by
using bch2_snapshot_parent(), but we call that on nodes that haven't
been initialized yet with bch2_mark_snapshot().
Fix this by adding a separate loop in bch2_snapshots_read() for
initializing the is_ancestor bitmap, and also add some new debug asserts
for checking this sort of breakage in the future.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions