projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf41fc
)
vfs: predict the error in retry_estale as unlikely
author
Mateusz Guzik
<mjguzik@gmail.com>
Wed, 4 Oct 2023 11:19:15 +0000
(13:19 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Thu, 19 Oct 2023 09:02:49 +0000
(11:02 +0200)
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link:
https://lore.kernel.org/r/20231004111916.728135-2-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/namei.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/namei.h
b/include/linux/namei.h
index e3619920f9f0111696e4664873782c369fa91496..3100371b5e3218a92039b363e3508b5c69166238 100644
(file)
--- a/
include/linux/namei.h
+++ b/
include/linux/namei.h
@@
-136,7
+136,7
@@
static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
static inline bool
retry_estale(const long error, const unsigned int flags)
{
- return
error == -ESTALE && !(flags & LOOKUP_REVAL
);
+ return
unlikely(error == -ESTALE && !(flags & LOOKUP_REVAL)
);
}
#endif /* _LINUX_NAMEI_H */