public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry
@ 2026-04-22 12:39 Thorsten Blum
  2026-04-22 14:43 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-04-22 12:39 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: Thorsten Blum, linux-fsdevel, linux-kernel

Drop the hard-coded length argument and use the simpler QSTR().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 fs/fuse/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index deddfffb037f..d224bcba593b 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -1113,7 +1113,7 @@ static struct dentry *fuse_get_dentry(struct super_block *sb,
 	inode = ilookup5(sb, handle->nodeid, fuse_inode_eq, &handle->nodeid);
 	if (!inode) {
 		struct fuse_entry_out outarg;
-		const struct qstr name = QSTR_INIT(".", 1);
+		const struct qstr name = QSTR(".");
 
 		if (!fc->export_support)
 			goto out_err;

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

end of thread, other threads:[~2026-04-22 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-22 12:39 [PATCH] fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry Thorsten Blum
2026-04-22 14:43 ` Al Viro

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