diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-21 12:44:44 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:04 +0200 |
commit | 9473cff989c8519d01c6a285bd94d2ed35d30251 (patch) | |
tree | e77332ff5ea18f120481c817b13493c286d4afb0 /fs/bcachefs/errcode.h | |
parent | bcachefs: Fix lockdep splat in bch2_readdir (diff) | |
download | linux-9473cff989c8519d01c6a285bd94d2ed35d30251.tar.xz 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/errcode.h')
-rw-r--r-- | fs/bcachefs/errcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index 12c0c44eb6b0..621ff4647205 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -224,7 +224,7 @@ bool __bch2_err_matches(int, int); static inline bool _bch2_err_matches(int err, int class) { - return err && __bch2_err_matches(err, class); + return err < 0 && __bch2_err_matches(err, class); } #define bch2_err_matches(_err, _class) \ |