fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry
Subsystems (2)
PATCH 1/1 fuse: use QSTR() instead of QSTR_INIT() in fuse_get_dentry
Drop the hard-coded length argument and use the simpler QSTR().
Signed-off-by Thorsten Blum <[email protected]>
--- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/inode.c +1 -1
@@ -1113,7 +1113,7 @@ 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 ); +const struct qstr name =QSTR ("." );if (!fc->export_support) goto out_err;
Al Viro
maintainerQuoted 13 lines · Thorsten Blum
Drop the hard-coded length argument and use the simpler
QSTR().Signed-off-by Thorsten Blum <[email protected]>--- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/fuse/inode.c +0
-0
fs/fuse/inode.c static struct dentry *fuse_get_dentry(struct super_block *sb, · line 1119
Quoted 8 lines
fs/fuse/inode.c +1
-1@@ -1113,7 +1113,7 @@ 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 ); +const struct qstr name =QSTR ("." );if (!fc->export_support) goto out_err;
What's wrong with
err = fuse_lookup_name(sb, handle->nodeid, &QSTR("."), &outarg,
&inode);to start with?