Skip to contentSkip to conversation

btrfs: use QSTR() in __btrfs_ioctl_snap_create

PATCH In review Thorsten Blum 2 participants 2 messages Apr 22 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: use QSTR() in __btrfs_ioctl_snap_create

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

---
 fs/btrfs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/ioctl.c +1 -1
index b2e447f5005c..4d9e62f3c668 100644
@@ -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;