From: Kent Overstreet Date: Mon, 29 May 2023 20:27:11 +0000 (-0400) Subject: bcachefs: Use unlikely() in bch2_err_matches() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3ebfc8fe95c5ec560d2d5c7e7bef62ebaa33a9c4;p=linux.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 acf9b92f9ab0f..12c0c44eb6b03 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);