]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Kill equiv_seen arg to delete_dead_snapshots_process_key()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Dec 2024 07:41:37 +0000 (02:41 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:23 +0000 (01:36 -0500)
commit85c060f62da4d039952895177f0c58b0167e320b
treed10af7976c39e3bf3fa0aa4ee3d58f10c749355d
parent92e31d425179c0f5b14d27ad1ad4a7b716c8db7e
bcachefs: Kill equiv_seen arg to delete_dead_snapshots_process_key()

When deleting dead snapshots, we move keys from redundant interior
snapshot nodes to child nodes - unless there's already a key, in which
case the ancestor key is deleted.

Previously, we tracked via equiv_seen whether the child snapshot had a
key, but this was tricky w.r.t. transaction restarts, and not
transactionally safe w.r.t. updates in the child snapshot.

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