bcachefs: Fix refcount leak in bch2_do_invalidates()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 20 Jun 2022 23:48:16 +0000 (19:48 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:34 +0000 (17:09 -0400)
commit1c6ff39445553f84f9a46c2c60a4768c7f4ef226
treeb28054c9d19b1f496c59f4db8210eff7866f0385
parenta3d7afa5c1b62140168982747fd15c1999d991f4
bcachefs: Fix refcount leak in bch2_do_invalidates()

If we fail to queue the work item because it's already in process, we
need to drop the ref we just took.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_background.c