From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40B573DEAD1 for ; Wed, 22 Apr 2026 12:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776861523; cv=none; b=pjYeJ8pScKPbaWcUVoYE0VDUe3p84l2n97/wFG0KCiOpgSMyYXTPQJW+kPuEUtr8ih3YyXg9jmsPF4EgIfnCVmneYMli5/4D2kNMBLnruARnRkt9YkTUC2WyD9ZUnIYQHYkJoLGPJSWeh7dl+dzEoQYzoMY7r/0+ZKQ9+vANG7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776861523; c=relaxed/simple; bh=SqqrXuOcwp0mDTE2JfSBNMwR1q/HYmy2wowxXZyT3DM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c9rg/+opUXkUM0bmiid16Aociry+q56gjwCVLY5be2n30mRF40fo0AvVz/niHvJC4p6SnOq+JvBHg/rstoJ/vDSQtU82z+7Bv7AuMoOkmaqHPk8LjZBokRIM4Ud9MwyRfYI5479dDMgkB0XbPM73YCwbyHWBkhRrEi9VHQ25BgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=pFgrQ3vB; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="pFgrQ3vB" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1776861506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=5GL3ANXEiw0DDYEN9415UA1/3jHHqCn9ChSD9FoLWd4=; b=pFgrQ3vBxSwvN/IUc/58FialO37NXcV7j+DS/Ao9SYM5c74RDTqlOeHICx28tPVI15oKxH Ctkw4VbqT0TMLX3l/XvXKjUU401H/+yj/ehYLxFOr5DP5glAGkUn7/YOxyisyhiDeI0APl kIGKOss7kaqmWsBv+x1PEzqReKVeh3Q= From: Thorsten Blum To: Chris Mason , David Sterba Cc: Thorsten Blum , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] btrfs: use QSTR() in __btrfs_ioctl_snap_create Date: Wed, 22 Apr 2026 14:36:36 +0200 Message-ID: <20260422123633.100798-4-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=636; i=thorsten.blum@linux.dev; h=from:subject; bh=SqqrXuOcwp0mDTE2JfSBNMwR1q/HYmy2wowxXZyT3DM=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDJkvDlxkD9hQ7F7Re5ft09uaixxftv9cuoYvMpovZ9maT xtXqPT6dpSyMIhxMciKKbI8mPVjhm9pTeUmk4idMHNYmUCGMHBxCsBEzk5l+F+f92FuyA75Fg/n HUZ6CdGaxaWHurVW8HWGeP92Xnx75V2G/yH3tXNWi1z8IHiB9YELl+8voZAJWzgNOGbeW3yU0Tt HlwcA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Drop the length argument and use the simpler QSTR(). Signed-off-by: Thorsten Blum --- 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;