mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
rpc_create_*_dir: don't bother with qstr
just pass the name Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e9a17bd73a
commit
a95e691f9c
4 changed files with 23 additions and 33 deletions
|
@ -1812,19 +1812,11 @@ int sunrpc_cache_register_pipefs(struct dentry *parent,
|
|||
const char *name, umode_t umode,
|
||||
struct cache_detail *cd)
|
||||
{
|
||||
struct qstr q;
|
||||
struct dentry *dir;
|
||||
int ret = 0;
|
||||
|
||||
q.name = name;
|
||||
q.len = strlen(name);
|
||||
q.hash = full_name_hash(q.name, q.len);
|
||||
dir = rpc_create_cache_dir(parent, &q, umode, cd);
|
||||
if (!IS_ERR(dir))
|
||||
cd->u.pipefs.dir = dir;
|
||||
else
|
||||
ret = PTR_ERR(dir);
|
||||
return ret;
|
||||
struct dentry *dir = rpc_create_cache_dir(parent, name, umode, cd);
|
||||
if (IS_ERR(dir))
|
||||
return PTR_ERR(dir);
|
||||
cd->u.pipefs.dir = dir;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sunrpc_cache_register_pipefs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue