aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl/spl-generic.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2019-07-12 14:40:15 -0700
committerBrian Behlendorf <[email protected]>2019-07-17 15:13:53 -0700
commitd64dd3b62a5411e628ce59b11fe50ba848d12ffc (patch)
tree97c37ab6dcbb8f2cabc8e86f378759909f66b999 /module/spl/spl-generic.c
parente7a99dab2b065ac2f8736a65d1b226d21754d771 (diff)
Retire unused spl_{mutex,rwlock}_{init_fini}
These functions are unused and can be removed along with the spl-mutex.c and spl-rwlock.c source files. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tomohiro Kusumi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #9029
Diffstat (limited to 'module/spl/spl-generic.c')
-rw-r--r--module/spl/spl-generic.c38
1 files changed, 13 insertions, 25 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
index cd2fa2020..3c5ef60bd 100644
--- a/module/spl/spl-generic.c
+++ b/module/spl/spl-generic.c
@@ -694,51 +694,41 @@ spl_init(void)
if ((rc = spl_kvmem_init()))
goto out1;
- if ((rc = spl_mutex_init()))
- goto out2;
-
- if ((rc = spl_rw_init()))
- goto out3;
-
if ((rc = spl_tsd_init()))
- goto out4;
+ goto out2;
if ((rc = spl_taskq_init()))
- goto out5;
+ goto out3;
if ((rc = spl_kmem_cache_init()))
- goto out6;
+ goto out4;
if ((rc = spl_vn_init()))
- goto out7;
+ goto out5;
if ((rc = spl_proc_init()))
- goto out8;
+ goto out6;
if ((rc = spl_kstat_init()))
- goto out9;
+ goto out7;
if ((rc = spl_zlib_init()))
- goto out10;
+ goto out8;
return (rc);
-out10:
- spl_kstat_fini();
-out9:
- spl_proc_fini();
out8:
- spl_vn_fini();
+ spl_kstat_fini();
out7:
- spl_kmem_cache_fini();
+ spl_proc_fini();
out6:
- spl_taskq_fini();
+ spl_vn_fini();
out5:
- spl_tsd_fini();
+ spl_kmem_cache_fini();
out4:
- spl_rw_fini();
+ spl_taskq_fini();
out3:
- spl_mutex_fini();
+ spl_tsd_fini();
out2:
spl_kvmem_fini();
out1:
@@ -755,8 +745,6 @@ spl_fini(void)
spl_kmem_cache_fini();
spl_taskq_fini();
spl_tsd_fini();
- spl_rw_fini();
- spl_mutex_fini();
spl_kvmem_fini();
}