bcachefs: Simplify bch2_bkey_drop_ptrs()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 4 Sep 2024 21:49:20 +0000 (17:49 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:46 +0000 (09:41 -0400)
commitdf88febc2065ae64779f295df0a5d4f52e5591e6
tree5167b0fa96ea2caf766714cf67d823d9c5eea8d7
parentec36573dcd7b160bb9c5e6b20a43d484bc761d2e
bcachefs: Simplify bch2_bkey_drop_ptrs()

bch2_bkey_drop_ptrs() had a some complicated machinery for avoiding
O(n^2) when dropping multiple pointers - but when n is only going to be
~4, it's not worth it.

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