mirror of
https://github.com/torvalds/linux.git
synced 2026-03-07 23:04:33 +01:00
user_statfs(): switch to CLASS(filename)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a4503461fb
commit
a0c3d1f3de
1 changed files with 1 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ int user_statfs(const char __user *pathname, struct kstatfs *st)
|
|||
struct path path;
|
||||
int error;
|
||||
unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT;
|
||||
struct filename *name = getname(pathname);
|
||||
CLASS(filename, name)(pathname);
|
||||
retry:
|
||||
error = filename_lookup(AT_FDCWD, name, lookup_flags, &path, NULL);
|
||||
if (!error) {
|
||||
|
|
@ -110,7 +110,6 @@ retry:
|
|||
goto retry;
|
||||
}
|
||||
}
|
||||
putname(name);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue