Commit f5fd3f28 authored by Enzo Matsumiya's avatar Enzo Matsumiya Committed by Steve French

cifs: remove "cifs_" prefix from init/destroy mids functions

Rename generic mid functions to same style, i.e. without "cifs_"
prefix.

cifs_{init,destroy}_mids() -> {init,destroy}_mids()
Signed-off-by: default avatarEnzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 70f08f91
......@@ -1568,8 +1568,7 @@ cifs_destroy_request_bufs(void)
kmem_cache_destroy(cifs_sm_req_cachep);
}
static int
cifs_init_mids(void)
static int init_mids(void)
{
cifs_mid_cachep = kmem_cache_create("cifs_mpx_ids",
sizeof(struct mid_q_entry), 0,
......@@ -1587,8 +1586,7 @@ cifs_init_mids(void)
return 0;
}
static void
cifs_destroy_mids(void)
static void destroy_mids(void)
{
mempool_destroy(cifs_mid_poolp);
kmem_cache_destroy(cifs_mid_cachep);
......@@ -1685,7 +1683,7 @@ init_cifs(void)
if (rc)
goto out_destroy_deferredclose_wq;
rc = cifs_init_mids();
rc = init_mids();
if (rc)
goto out_destroy_inodecache;
......@@ -1742,7 +1740,7 @@ init_cifs(void)
#endif
cifs_destroy_request_bufs();
out_destroy_mids:
cifs_destroy_mids();
destroy_mids();
out_destroy_inodecache:
cifs_destroy_inodecache();
out_destroy_deferredclose_wq:
......@@ -1778,7 +1776,7 @@ exit_cifs(void)
dfs_cache_destroy();
#endif
cifs_destroy_request_bufs();
cifs_destroy_mids();
destroy_mids();
cifs_destroy_inodecache();
destroy_workqueue(deferredclose_wq);
destroy_workqueue(cifsoplockd_wq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment