projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60e66b4
)
vfs: make lgetxattr retry once on ESTALE
author
Jeff Layton
<
[email protected]
>
Tue, 11 Dec 2012 17:10:16 +0000
(12:10 -0500)
committer
Al Viro
<
[email protected]
>
Thu, 20 Dec 2012 23:50:09 +0000
(18:50 -0500)
Signed-off-by: Jeff Layton <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/xattr.c
patch
|
blob
|
history
diff --git
a/fs/xattr.c
b/fs/xattr.c
index 24833de649f87d1a6646f981321070819e7bc0d3..c127d57bf655e1de05d39ede2739dba47f2338c3 100644
(file)
--- a/
fs/xattr.c
+++ b/
fs/xattr.c
@@
-505,12
+505,17
@@
SYSCALL_DEFINE4(lgetxattr, const char __user *, pathname,
{
struct path path;
ssize_t error;
-
- error = user_lpath(pathname, &path);
+ unsigned int lookup_flags = 0;
+retry:
+ error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path);
if (error)
return error;
error = getxattr(path.dentry, name, value, size);
path_put(&path);
+ if (retry_estale(error, lookup_flags)) {
+ lookup_flags |= LOOKUP_REVAL;
+ goto retry;
+ }
return error;
}