diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-29 16:27:11 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-20 22:55:58 -0400 |
commit | 8e650a8f1e60413a070c574e318fc1600b2f5e80 (patch) | |
tree | a5ff926ac5870fe56c6e7daba4ae049ad05c0078 | |
parent | 2bfb9070a483e98afb26106b431e9ec2f3336f15 (diff) |
bcachefs: Use unlikely() in bch2_err_matches()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-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); |