]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add a retry_estale helper function to handle retries on ESTALE
authorJeff Layton <jlayton@redhat.com>
Thu, 20 Dec 2012 19:59:40 +0000 (14:59 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 20 Dec 2012 23:50:00 +0000 (18:50 -0500)
commit1e9df30c515563c3ef3857ee6e7ccc22ff89cdd7
treea06e604535e10ec0c469300f0d36cb5aa8c2782d
parent42a79fb53199ce6169dfc5c95bf2e4d52125a541
vfs: add a retry_estale helper function to handle retries on ESTALE

This function is expected to be called from path-based syscalls to help
them decide whether to try the lookup and call again in the event that
they got an -ESTALE return back on an earier try.

Currently, we only retry the call once on an ESTALE error, but in the
event that we decide that that's not enough in the future, we should be
able to change the logic in this helper without too much effort.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/namei.h