Skip to content

Commit 95e93d1

Browse files
mjguzikbrauner
authored andcommitted
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>
1 parent 6cf41fc commit 95e93d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/namei.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
136136
static inline bool
137137
retry_estale(const long error, const unsigned int flags)
138138
{
139-
return error == -ESTALE && !(flags & LOOKUP_REVAL);
139+
return unlikely(error == -ESTALE && !(flags & LOOKUP_REVAL));
140140
}
141141

142142
#endif /* _LINUX_NAMEI_H */

0 commit comments

Comments
 (0)