btrfs: use QSTR() in __btrfs_ioctl_snap_create()

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>
This commit is contained in:
Thorsten Blum authored and David Sterba committed 2026-06-08 15:53:30 +02:00
1 parent a6df0dcc23
commit 4c45ac3623
1 file changed
+1 -1
+1 -1
View 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;