summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-03 01:40:56 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2026-06-15 15:06:19 +0300
commit5ac67ab433d95bef5dcb8d18db0e3e4616f576cb (patch)
treeb0297b6214037d422e9952844825f365e4c7455f
parent03728af4aeef6ee9914f93d60936db351e106863 (diff)
downloadlinux-5ac67ab433d95bef5dcb8d18db0e3e4616f576cb.tar.xz
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 <thorsten.blum@linux.dev> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r--fs/fuse/inode.c3
1 files changed, 1 insertions, 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;