summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-12-14 11:17:33 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2026-01-16 20:52:04 +0300
commitef7282e84934d54249abc745fc1cbc8b727a81cf (patch)
tree555af9de8ddf1f170729fd1b637e1b6a680d8093
parent57483461e19c55da9cd9433aed2d47949e8c1c11 (diff)
downloadlinux-ef7282e84934d54249abc745fc1cbc8b727a81cf.tar.xz
quotactl_block(): switch to CLASS(filename)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/quota/quota.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 7c2b75a44485..ed906725e183 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -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);