diff options
| author | Kent Overstreet <[email protected]> | 2023-09-23 20:55:03 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-10-22 21:10:15 +0000 |
| commit | eebe8a8459f78bbac5a12d0ef76838929d736ad2 (patch) | |
| tree | 0eeef4900e9d5311b2114cef5110bbb991b5ac0b /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Fix a null ptr deref in bch2_get_alloc_in_memory_pos() (diff) | |
| download | kernel-eebe8a8459f78bbac5a12d0ef76838929d736ad2.tar.gz kernel-eebe8a8459f78bbac5a12d0ef76838929d736ad2.zip | |
bcachefs: Make sure to initialize equiv when creating new snapshots
Previously, equiv was set in the snapshot deletion path, which is where
it's needed - equiv, for snapshot ID equivalence classes, would ideally
be a private data structure to the snapshot deletion path.
But if a new snapshot is created while snapshot deletion is running,
move_key_to_correct_snapshot() moves a key to snapshot id 0 - oops.
Fixes: https://github.com/koverstreet/bcachefs/issues/593
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
