Commit 3ebfc8fe authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Use unlikely() in bch2_err_matches()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4c4a8f20
...@@ -230,7 +230,7 @@ static inline bool _bch2_err_matches(int err, int class) ...@@ -230,7 +230,7 @@ static inline bool _bch2_err_matches(int err, int class)
#define bch2_err_matches(_err, _class) \ #define bch2_err_matches(_err, _class) \
({ \ ({ \
BUILD_BUG_ON(!__builtin_constant_p(_class)); \ BUILD_BUG_ON(!__builtin_constant_p(_class)); \
_bch2_err_matches(_err, _class); \ unlikely(_bch2_err_matches(_err, _class)); \
}) })
int __bch2_err_class(int); int __bch2_err_class(int);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment