]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Snapshot deletion no longer uses snapshot_t->equiv
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Dec 2024 08:03:58 +0000 (03:03 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:23 +0000 (01:36 -0500)
commit35c5609abf512302e4f3119d08fd1729e392d339
tree7f349d43f187140d78e7a15b08165ef9d417f11a
parent85c060f62da4d039952895177f0c58b0167e320b
bcachefs: Snapshot deletion no longer uses snapshot_t->equiv

Switch to generating a private list of interior nodes to delete, instead
of using the equivalence class in the global data structure.

This eliminates possible races with snapshot creation, and is much
cleaner - it'll let us delete a lot of janky code for calculating and
maintaining the equivalence classes.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/snapshot.c