]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 2 Jun 2026 22:40:56 +0000 (00:40 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 15 Jun 2026 12:06:19 +0000 (14:06 +0200)
Drop the hard-coded length argument and use the simpler QSTR(). Inline
the code and drop the local variable.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c

index c3689f4f7beb83acb52f4836b9039ded9de23bce..e62fc738ddbc6c0e7f3fc3e3512995212ecd5a00 100644 (file)
@@ -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;