From nobody Mon Jun 8 05:24:57 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 56B4138656D for ; Tue, 2 Jun 2026 22:41:33 +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=1780440094; cv=none; b=GHszzMIOWYuuBfh0NVn5HfMhFbr1pmChcOr0nZLEWbzH8iEXvW32YlwHdFTXO2viAk58Ye3NN/OgrUC82Dockv0Eujk/+syqk5ZP9LNDZ9VjTz4hKfYy08F3ibyQhws2OMw8UN/vV86MKzN4nhpQQHmcmjUlUX25EISWYukPKX0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780440094; c=relaxed/simple; bh=anJBQfqCpkkieE7QSR3sEiOcNuEBrN+rl6Oxm7d8kq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PNiaFs2heqkrzA+uy6r9g0RLsFZoseqiapd2Zi/bL8DkXfaUSQhxmnt+HzWgu0BhWunUG8GIQ9MQko0dT7esEvNhpCcN5udDRE9VJahVBkj7DQ65Jr9TXng+QoH2Nn+9eMOrf1rOrc7iVoKMzeypmLy2yQ/+EpGsgMobkPqHAaA= 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=Z9tLDJsY; 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="Z9tLDJsY" 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=1780440091; 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=Z9tLDJsYbtdD8oKGGGyQZ0XYpKqpBc5Dh6gYEajCLYwFCn8ZozVX507J7cMyvPNTMaE8Gq oEXuZzJypSUTh2vEkHdefmqhpETwbZCC3LnM41gBKaGHNBXTds/3wT5Y1I4DjVd/FTORmT Z3Hbz9f++eXvPO/zICBEgE0A7Y3Y9So= From: Thorsten Blum To: Al Viro , Miklos Szeredi Cc: Thorsten Blum , fuse-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2] fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry Date: Wed, 3 Jun 2026 00:40:56 +0200 Message-ID: <20260602224054.1087954-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=owGbwMvMwCUWt7pQ4caZUj3G02pJDFny0d+WLz1f9DGrWlpc2NM6fxvLwlOqYa9/RNTWFXzu5 C99Vu/fUcrCIMbFICumyPJg1o8ZvqU1lZtMInbCzGFlAhnCwMUpABOJ6GFkmHMy2oYpTa/G5WK5 XZDwq9udHxUP6eu6nVZSc/wSWzs7jpHhtV4We/nHQ7MYw+/1Kbk/jov/vURH8LymJ09lzIfeFZ/ 4AQ== 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;