projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4a8f2
)
bcachefs: Use unlikely() in bch2_err_matches()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 29 May 2023 20:27:11 +0000
(16:27 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:03 +0000
(17:10 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/errcode.h
patch
|
blob
|
history
diff --git
a/fs/bcachefs/errcode.h
b/fs/bcachefs/errcode.h
index
acf9b92
..
12c0c44
100644
(file)
--- 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);