diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-12-14 03:19:28 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2026-01-16 12:52:04 -0500 |
| commit | a0c3d1f3de375da1bcf2fb15d4d5a1e5ebf7b277 (patch) | |
| tree | 4aeff99b698f6d6bcbc32629064bf8ce5295f1ad | |
| parent | a4503461fb6b72c68dd341c4a8e286e1bf2ec265 (diff) | |
user_statfs(): switch to CLASS(filename)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/statfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/statfs.c b/fs/statfs.c index a5671bf6c7f0..377bcef7a561 100644 --- a/fs/statfs.c +++ b/fs/statfs.c @@ -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; } |
