summaryrefslogtreecommitdiff
path: root/include/linux/namei.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2023-10-04 13:19:15 +0200
committerChristian Brauner <brauner@kernel.org>2023-10-19 11:02:49 +0200
commit95e93d17cb113a3b097774874572b69c058acab5 (patch)
treec75a3b9f9cfaa9110ce9b05ac363a3a01da35800 /include/linux/namei.h
parent6cf41fcfe099b61b4e3ea7dbe04a906f4c904822 (diff)
vfs: predict the error in retry_estale as unlikely
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>
Diffstat (limited to 'include/linux/namei.h')
-rw-r--r--include/linux/namei.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h
index e3619920f9f0..3100371b5e32 100644
--- 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 */