]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: use QSTR() in __btrfs_ioctl_snap_create()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 22 Apr 2026 12:36:36 +0000 (14:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jun 2026 13:53:30 +0000 (15:53 +0200)
Drop the length argument and use the simpler QSTR().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index 6e99e5f8d32cfdfe4ccbd6294e938517d642a7db..146a023818cdd2f15d4ad7a32ed8a738064344fe 100644 (file)
@@ -1112,7 +1112,7 @@ static noinline int __btrfs_ioctl_snap_create(struct file *file,
                                struct btrfs_qgroup_inherit *inherit)
 {
        int ret;
-       struct qstr qname = QSTR_INIT(name, strlen(name));
+       struct qstr qname = QSTR(name);
 
        if (!S_ISDIR(file_inode(file)->i_mode))
                return -ENOTDIR;