From nobody Mon May 25 06:40:18 2026 Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (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 007C823E358 for ; Sun, 17 May 2026 17:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779039264; cv=none; b=hOsSqvb2nVofMGJVWGB77ZCMDQgkytoFcdwp1DS7PPDxaVejxm4YOE+pMrYX1n9r8nV1G/VxZzESoltDiHxro9we/UmR41I66V5TOZC/ftshpgqeelLFL/VZRmtd24K+hqUyZyBEkRnXRKj9xl5kSdgFnK6iruWX7Z/ngLeFess= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779039264; c=relaxed/simple; bh=anJBQfqCpkkieE7QSR3sEiOcNuEBrN+rl6Oxm7d8kq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TviQ4bPAQ0gYOcLFx5M2ZytQU7CBwK+xl1LWJWKU5RLM/u1fy9P90c4yM1Ty6RdwfwEFXqiADClsZoGU/V9c1+TZGZxn1qNiBoKyFAjaeni1Us26ZGtB31TEC+P6HLorGZcQ3MnDH87hgq70RcciGXBr5t3Rh5rYLrBvOGQMHww= 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=tZSSkhkl; arc=none smtp.client-ip=95.215.58.172 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="tZSSkhkl" 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=1779039251; 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=9ZtFPLiVGfBwb4H3U2XXIZqyHw0d1oq7qglfFlOQDyk=; b=tZSSkhkl/JmTF/JB6FSX5tX61evsYaIp8OkTt0gaqtep94A2rWWIADoiSlahUz2rfTzOkU kXwkAMnjKI7UxaNpEhuQmtUr59KuViwz6obx5QUlBRF+26ywnewWzVCeGGv9XNmVcY3A9g xcxZIs9OmtYA3VV5oMNax6CO72FAjJM= From: Thorsten Blum To: Miklos Szeredi Cc: Thorsten Blum , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry Date: Sun, 17 May 2026 19:33:44 +0200 Message-ID: <20260517173342.4913-3-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=1077; i=thorsten.blum@linux.dev; h=from:subject; bh=anJBQfqCpkkieE7QSR3sEiOcNuEBrN+rl6Oxm7d8kq0=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFmcv78vX3q+6GNWtbS4sKd1/jaWhadUw17/iKitK/jcy V/6rN6/o5SFQYyLQVZMkeXBrB8zfEtrKjeZROyEmcPKBDKEgYtTACbyWYnhv4u4y6O7H5ZKWM9p 0TyT0fWgoNSHKS5D93LUTKE52u7pixkZrmy2N+aP6nAwa1+ffdXg8JYv53xn8L6IWfDQ7vVLicR aVgA= X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Drop the hard-coded length argument and use the simpler QSTR(). Inline the code and drop the local variable. Signed-off-by: Thorsten Blum --- Changes in v2: - Inline QSTR() and drop the local variable as suggested by Al Viro - v1: https://lore.kernel.org/lkml/20260422123911.100979-3-thorsten.blum@li= nux.dev/ --- fs/fuse/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 0897f8e62b4d..51df88e43f6f 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1064,12 +1064,11 @@ static struct dentry *fuse_get_dentry(struct super_= block *sb, inode =3D ilookup5(sb, handle->nodeid, fuse_inode_eq, &handle->nodeid); if (!inode) { struct fuse_entry_out outarg; - const struct qstr name =3D QSTR_INIT(".", 1); =20 if (!fc->export_support) goto out_err; =20 - err =3D fuse_lookup_name(sb, handle->nodeid, &name, &outarg, + err =3D fuse_lookup_name(sb, handle->nodeid, &QSTR("."), &outarg, &inode); if (err && err !=3D -ENOENT) goto out_err;