diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-21 06:44:44 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:04 -0400 |
commit | 9473cff989c8519d01c6a285bd94d2ed35d30251 (patch) | |
tree | e77332ff5ea18f120481c817b13493c286d4afb0 /fs/bcachefs/btree_iter.h | |
parent | 462f494bc56052e3d17c9ae48a6e407b3f9d2c0c (diff) | |
download | linux-9473cff989c8519d01c6a285bd94d2ed35d30251.tar.gz linux-9473cff989c8519d01c6a285bd94d2ed35d30251.tar.bz2 linux-9473cff989c8519d01c6a285bd94d2ed35d30251.zip |
bcachefs: Fix more lockdep splats in debug.c
Similar to previous fixes, we can't incur page faults while holding
btree locks.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.h')
-rw-r--r-- | fs/bcachefs/btree_iter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index d2af3f38e6f5..9ef9527dda6b 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -286,7 +286,7 @@ __always_inline static inline int btree_trans_restart_nounlock(struct btree_trans *trans, int err) { BUG_ON(err <= 0); - BUG_ON(!bch2_err_matches(err, BCH_ERR_transaction_restart)); + BUG_ON(!bch2_err_matches(-err, BCH_ERR_transaction_restart)); trans->restarted = err; trans->last_restarted_ip = _THIS_IP_; |