summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-23 16:55:03 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-09-23 16:55:03 -0400
commitc0909db6c3fd2b1319e9e74c89e2a117fc47ccbe (patch)
tree8b09b3d755de3a42465f549c8262e6706790cecc /fs/btrfs/tree-mod-log.c
parent38a4d47c01fb65fb74bb85584d27f950cdb2e2a7 (diff)
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 <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions