From: Kent Overstreet Date: Mon, 29 May 2023 20:27:11 +0000 (-0400) Subject: bcachefs: Use unlikely() in bch2_err_matches() X-Git-Tag: io_uring-6.7-2023-11-10~119^2~283 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3ebfc8fe95c5ec560d2d5c7e7bef62ebaa33a9c4;p=linux-block.git bcachefs: Use unlikely() in bch2_err_matches() Signed-off-by: Kent Overstreet --- 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);