[PATCH] btrfs: use QSTR() in __btrfs_ioctl_snap_create

Thorsten Blum
2026-04-22T12:38:38Z

Drop the length argument and use the simpler QSTR().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
fs/btrfs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index b2e447f5005c..4d9e62f3c668 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1114,7 +1114,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;