mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 01:08:13 -04:00
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>
This commit is contained in:
committed by
Miklos Szeredi
parent
03728af4ae
commit
5ac67ab433
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user