bcachefs: Use unlikely() in bch2_err_matches()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-05-29 16:27:11 -04:00
parent 4c4a8f20d1
commit 3ebfc8fe95

View File

@ -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);