mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02: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
|
|
@ -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 @@ int user_statfs(const char __user *pathname, struct kstatfs *st)
|
|||
goto retry;
|
||||
}
|
||||
}
|
||||
putname(name);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user