From: Thorsten Blum Date: Tue, 2 Jun 2026 22:40:56 +0000 (+0200) Subject: fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ac67ab433d95bef5dcb8d18db0e3e4616f576cb;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index c3689f4f7beb8..e62fc738ddbc6 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;