bcachefs: Refactor delete_dead_snapshots()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 27 May 2024 02:22:30 +0000 (22:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 15:29:26 +0000 (11:29 -0400)
commit82af5ceb5d9d1f0613be3b9161ec1104b85f00b8
tree7e9fe8bcba59c3ac1cae824357360d35e6a7204d
parent218e5e0c2a3acdb29ccbdfbfdd5e2def27d3aae2
bcachefs: Refactor delete_dead_snapshots()

Consolidate per-key work into delete_dead_snapshots_process_key(), so we
now walk all keys once, not twice.

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