diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-29 16:27:11 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:03 -0400 |
commit | 3ebfc8fe95c5ec560d2d5c7e7bef62ebaa33a9c4 (patch) | |
tree | 6d43649d8bf52222e1aeb65d035c2548f93d02cd /fs | |
parent | 4c4a8f20d1767b2ed927d25ccc363de72d48d28f (diff) |
bcachefs: Use unlikely() in bch2_err_matches()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-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 acf9b92f9ab0..12c0c44eb6b0 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -230,7 +230,7 @@ static inline bool _bch2_err_matches(int err, int class) #define bch2_err_matches(_err, _class) \ ({ \ BUILD_BUG_ON(!__builtin_constant_p(_class)); \ - _bch2_err_matches(_err, _class); \ + unlikely(_bch2_err_matches(_err, _class)); \ }) int __bch2_err_class(int); |