Skip to content

Commit a0c3d1f

Browse files
author
Al Viro
committed
user_statfs(): switch to CLASS(filename)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a450346 commit a0c3d1f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/statfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int user_statfs(const char __user *pathname, struct kstatfs *st)
9999
struct path path;
100100
int error;
101101
unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT;
102-
struct filename *name = getname(pathname);
102+
CLASS(filename, name)(pathname);
103103
retry:
104104
error = filename_lookup(AT_FDCWD, name, lookup_flags, &path, NULL);
105105
if (!error) {
@@ -110,7 +110,6 @@ int user_statfs(const char __user *pathname, struct kstatfs *st)
110110
goto retry;
111111
}
112112
}
113-
putname(name);
114113
return error;
115114
}
116115

0 commit comments

Comments
 (0)