bcachefs: Simplify stripe_idx_to_delete
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 11 Mar 2023 04:37:19 +0000 (23:37 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commite28ef07e0ef47c03f773571d85bc82fcce831376
treef607da59b7bbfee2c85074013a9259f12f06f7ab
parent46e14854fca4a262a823079c1958a204f983fa4e
bcachefs: Simplify stripe_idx_to_delete

This is not technically correct - it's subject to a race if we ever end
up with a stripe with all empty blocks (that needs to be deleted) being
held open. But the "correct" version was much too inefficient, and soon
we'll be adding a stripes LRU.

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