diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-14 08:43:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-14 09:02:28 -0400 |
commit | a95e691f9c4a6e24fdeab6d7feae6d5411fe8a69 (patch) | |
tree | ebe142c51935b977861e9d911a505bc63ef8ee29 /net/sunrpc/cache.c | |
parent | e9a17bd73a29e5323c37ec5ffe50fc0e825d3d03 (diff) |
rpc_create_*_dir: don't bother with qstr
just pass the name
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 80fe5c86efd1..b40f9567e628 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -1812,19 +1812,11 @@ int sunrpc_cache_register_pipefs(struct dentry *parent, | |||
1812 | const char *name, umode_t umode, | 1812 | const char *name, umode_t umode, |
1813 | struct cache_detail *cd) | 1813 | struct cache_detail *cd) |
1814 | { | 1814 | { |
1815 | struct qstr q; | 1815 | struct dentry *dir = rpc_create_cache_dir(parent, name, umode, cd); |
1816 | struct dentry *dir; | 1816 | if (IS_ERR(dir)) |
1817 | int ret = 0; | 1817 | return PTR_ERR(dir); |
1818 | 1818 | cd->u.pipefs.dir = dir; | |
1819 | q.name = name; | 1819 | return 0; |
1820 | q.len = strlen(name); | ||
1821 | q.hash = full_name_hash(q.name, q.len); | ||
1822 | dir = rpc_create_cache_dir(parent, &q, umode, cd); | ||
1823 | if (!IS_ERR(dir)) | ||
1824 | cd->u.pipefs.dir = dir; | ||
1825 | else | ||
1826 | ret = PTR_ERR(dir); | ||
1827 | return ret; | ||
1828 | } | 1820 | } |
1829 | EXPORT_SYMBOL_GPL(sunrpc_cache_register_pipefs); | 1821 | EXPORT_SYMBOL_GPL(sunrpc_cache_register_pipefs); |
1830 | 1822 | ||