aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_trans_commit.c
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2023-07-13 06:43:29 +0000
committerKent Overstreet <[email protected]>2023-10-22 21:10:11 +0000
commit66487c54ad8207ef1c029df45ffaeaafbcc11f77 (patch)
tree4d88aa0241e4bd202877f970fdeec86a9e1b6d5e /fs/bcachefs/btree_trans_commit.c
parentbcachefs: move check_pos_snapshot_overwritten() to snapshot.c (diff)
downloadkernel-66487c54ad8207ef1c029df45ffaeaafbcc11f77.tar.gz
kernel-66487c54ad8207ef1c029df45ffaeaafbcc11f77.zip
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 <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions