]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
quotactl_block(): switch to CLASS(filename)
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Dec 2025 08:17:33 +0000 (03:17 -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/quota/quota.c

index 7c2b75a4448528ca3ed92ca384f9375208d84e8e..ed906725e18323bd021ce9868df92a5eb39ae301 100644 (file)
@@ -867,7 +867,7 @@ static struct super_block *quotactl_block(const char __user *special, int cmd)
 {
 #ifdef CONFIG_BLOCK
        struct super_block *sb;
-       struct filename *tmp = getname(special);
+       CLASS(filename, tmp)(special);
        bool excl = false, thawed = false;
        int error;
        dev_t dev;
@@ -875,7 +875,6 @@ static struct super_block *quotactl_block(const char __user *special, int cmd)
        if (IS_ERR(tmp))
                return ERR_CAST(tmp);
        error = lookup_bdev(tmp->name, &dev);
-       putname(tmp);
        if (error)
                return ERR_PTR(error);