From 5ac67ab433d95bef5dcb8d18db0e3e4616f576cb Mon Sep 17 00:00:00 2001 From: Thorsten Blum Date: Wed, 3 Jun 2026 00:40:56 +0200 Subject: [PATCH] fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry Drop the hard-coded length argument and use the simpler QSTR(). Inline the code and drop the local variable. Signed-off-by: Thorsten Blum Signed-off-by: Miklos Szeredi --- 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 c3689f4f7beb..e62fc738ddbc 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 = ilookup5(sb, handle->nodeid, fuse_inode_eq, &handle->nodeid); if (!inode) { struct fuse_entry_out outarg; - const struct qstr name = QSTR_INIT(".", 1); if (!fc->export_support) goto out_err; - err = fuse_lookup_name(sb, handle->nodeid, &name, &outarg, + err = fuse_lookup_name(sb, handle->nodeid, &QSTR("."), &outarg, &inode); if (err && err != -ENOENT) goto out_err;