]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
user_statfs(): switch to CLASS(filename)
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Dec 2025 08:19:28 +0000 (03:19 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 16 Jan 2026 17:52:04 +0000 (12:52 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/statfs.c

index a5671bf6c7f03a73d8d3e38142bb560cd376474a..377bcef7a561100479ea1cd7ed707d13f5538329 100644 (file)
@@ -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;
 }