Skip to content

Commit ef7282e

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/quota/quota.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,15 +867,14 @@ static struct super_block *quotactl_block(const char __user *special, int cmd)
867867
{
868868
#ifdef CONFIG_BLOCK
869869
struct super_block *sb;
870-
struct filename *tmp = getname(special);
870+
CLASS(filename, tmp)(special);
871871
bool excl = false, thawed = false;
872872
int error;
873873
dev_t dev;
874874

875875
if (IS_ERR(tmp))
876876
return ERR_CAST(tmp);
877877
error = lookup_bdev(tmp->name, &dev);
878-
putname(tmp);
879878
if (error)
880879
return ERR_PTR(error);
881880

0 commit comments

Comments
 (0)