mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RESEND v2] namei: use QSTR() instead of QSTR_INIT() in path_pts
@ 2026-05-05 11:42 Thorsten Blum
  2026-05-12 12:17 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-05-05 11:42 UTC (permalink / raw)
  To: Alexander Viro, Christian Brauner, Jan Kara
  Cc: Thorsten Blum, linux-fsdevel, linux-kernel

Drop the hard-coded length argument and use the simpler QSTR(). Inline
the code and drop the local variable.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
Changes in v2:
- Inline QSTR() and drop the local variable as suggested by Al Viro
- v1: https://lore.kernel.org/lkml/20260422123002.99876-3-thorsten.blum@linux.dev/
---
 fs/namei.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index c7fac83c9a85..01f3fbdf646c 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -3617,7 +3617,6 @@ int path_pts(struct path *path)
 	 */
 	struct dentry *parent = dget_parent(path->dentry);
 	struct dentry *child;
-	struct qstr this = QSTR_INIT("pts", 3);
 
 	if (unlikely(!path_connected(path->mnt, parent))) {
 		dput(parent);
@@ -3625,7 +3624,7 @@ int path_pts(struct path *path)
 	}
 	dput(path->dentry);
 	path->dentry = parent;
-	child = d_hash_and_lookup(parent, &this);
+	child = d_hash_and_lookup(parent, &QSTR("pts"));
 	if (IS_ERR_OR_NULL(child))
 		return -ENOENT;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH RESEND v2] namei: use QSTR() instead of QSTR_INIT() in path_pts
  2026-05-05 11:42 [PATCH RESEND v2] namei: use QSTR() instead of QSTR_INIT() in path_pts Thorsten Blum
@ 2026-05-12 12:17 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2026-05-12 12:17 UTC (permalink / raw)
  To: Thorsten Blum
  Cc: Christian Brauner, Alexander Viro, Jan Kara, linux-fsdevel, linux-kernel

On Tue, 05 May 2026 13:42:42 +0200, Thorsten Blum wrote:
> Drop the hard-coded length argument and use the simpler QSTR(). Inline
> the code and drop the local variable.

Applied to the vfs-7.2.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.2.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.2.misc

[1/1] namei: use QSTR() instead of QSTR_INIT() in path_pts
      https://git.kernel.org/vfs/vfs/c/24c62d29e9f0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-12 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-05 11:42 [PATCH RESEND v2] namei: use QSTR() instead of QSTR_INIT() in path_pts Thorsten Blum
2026-05-12 12:17 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome