mirror of https://github.com/torvalds/linux.git
bcachefs: Use unlikely() in bch2_err_matches()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
4c4a8f20d1
commit
3ebfc8fe95
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue