Skip to content

Commit f5fd3f2

Browse files
ematsumiyasmfrench
authored andcommitted
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: Enzo Matsumiya <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 70f08f9 commit f5fd3f2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

fs/cifs/cifsfs.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,8 +1568,7 @@ cifs_destroy_request_bufs(void)
15681568
kmem_cache_destroy(cifs_sm_req_cachep);
15691569
}
15701570

1571-
static int
1572-
cifs_init_mids(void)
1571+
static int init_mids(void)
15731572
{
15741573
cifs_mid_cachep = kmem_cache_create("cifs_mpx_ids",
15751574
sizeof(struct mid_q_entry), 0,
@@ -1587,8 +1586,7 @@ cifs_init_mids(void)
15871586
return 0;
15881587
}
15891588

1590-
static void
1591-
cifs_destroy_mids(void)
1589+
static void destroy_mids(void)
15921590
{
15931591
mempool_destroy(cifs_mid_poolp);
15941592
kmem_cache_destroy(cifs_mid_cachep);
@@ -1685,7 +1683,7 @@ init_cifs(void)
16851683
if (rc)
16861684
goto out_destroy_deferredclose_wq;
16871685

1688-
rc = cifs_init_mids();
1686+
rc = init_mids();
16891687
if (rc)
16901688
goto out_destroy_inodecache;
16911689

@@ -1742,7 +1740,7 @@ init_cifs(void)
17421740
#endif
17431741
cifs_destroy_request_bufs();
17441742
out_destroy_mids:
1745-
cifs_destroy_mids();
1743+
destroy_mids();
17461744
out_destroy_inodecache:
17471745
cifs_destroy_inodecache();
17481746
out_destroy_deferredclose_wq:
@@ -1778,7 +1776,7 @@ exit_cifs(void)
17781776
dfs_cache_destroy();
17791777
#endif
17801778
cifs_destroy_request_bufs();
1781-
cifs_destroy_mids();
1779+
destroy_mids();
17821780
cifs_destroy_inodecache();
17831781
destroy_workqueue(deferredclose_wq);
17841782
destroy_workqueue(cifsoplockd_wq);

0 commit comments

Comments
 (0)