bcachefs: delete_dead_snapshot_keys_v2()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 2 May 2025 17:23:22 +0000 (13:23 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:45 +0000 (20:14 -0400)
commit88f62ed60ceebf387140c8e59df8db827668d09a
tree2c186968f5b6eed91f99fd437dd91cefe4dcccea
parente9756dd29f33ede1a595d9fb5e0e2586f7542c1f
bcachefs: delete_dead_snapshot_keys_v2()

Since extents, dirents and xattrs require an inode with the
corresponding snapshot ID to exists, we can avoid a lot of scanning by
only scanning those trees for keys to process if the correspending inode
exists.

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