bcachefs: Fix move_ctxt_wait_event()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 4 Jan 2023 04:39:42 +0000 (23:39 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
commit46eea9cb9ec14684d1b6e90c17db1ac896f26a5b
treef5c97d1335afb29309f659b1eb5715e81d4e555d
parent7ffb6a7ec6712eb1ba84a80137c2f712e67c4171
bcachefs: Fix move_ctxt_wait_event()

We shouldn't be evaluating cond again if it already returned true.

This fixes a bug when this helper is used for taking nocow locks.

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