mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue