mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
user_statfs(): switch to CLASS(filename)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user