mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
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 <hutter2@llnl.gov> Reviewed-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #9029
This commit is contained in:
parent
3982d959c5
commit
428a63cc62
@ -181,7 +181,4 @@ spl_mutex_lockdep_on_maybe(kmutex_t *mp) \
|
||||
/* NOTE: do not dereference mp after this point */ \
|
||||
}
|
||||
|
||||
int spl_mutex_init(void);
|
||||
void spl_mutex_fini(void);
|
||||
|
||||
#endif /* _SPL_MUTEX_H */
|
||||
|
@ -196,10 +196,6 @@ RW_READ_HELD(krwlock_t *rwp)
|
||||
downgrade_write(SEM(rwp)); \
|
||||
spl_rw_lockdep_on_maybe(rwp); \
|
||||
})
|
||||
|
||||
/* END CSTYLED */
|
||||
|
||||
int spl_rw_init(void);
|
||||
void spl_rw_fini(void);
|
||||
|
||||
#endif /* _SPL_RWLOCK_H */
|
||||
|
@ -16,10 +16,8 @@ $(MODULE)-objs += spl-kmem.o
|
||||
$(MODULE)-objs += spl-kmem-cache.o
|
||||
$(MODULE)-objs += spl-kobj.o
|
||||
$(MODULE)-objs += spl-kstat.o
|
||||
$(MODULE)-objs += spl-mutex.o
|
||||
$(MODULE)-objs += spl-proc.o
|
||||
$(MODULE)-objs += spl-procfs-list.o
|
||||
$(MODULE)-objs += spl-rwlock.o
|
||||
$(MODULE)-objs += spl-taskq.o
|
||||
$(MODULE)-objs += spl-thread.o
|
||||
$(MODULE)-objs += spl-tsd.o
|
||||
|
@ -694,51 +694,41 @@ spl_init(void)
|
||||
if ((rc = spl_kvmem_init()))
|
||||
goto out1;
|
||||
|
||||
if ((rc = spl_mutex_init()))
|
||||
if ((rc = spl_tsd_init()))
|
||||
goto out2;
|
||||
|
||||
if ((rc = spl_rw_init()))
|
||||
if ((rc = spl_taskq_init()))
|
||||
goto out3;
|
||||
|
||||
if ((rc = spl_tsd_init()))
|
||||
if ((rc = spl_kmem_cache_init()))
|
||||
goto out4;
|
||||
|
||||
if ((rc = spl_taskq_init()))
|
||||
if ((rc = spl_vn_init()))
|
||||
goto out5;
|
||||
|
||||
if ((rc = spl_kmem_cache_init()))
|
||||
if ((rc = spl_proc_init()))
|
||||
goto out6;
|
||||
|
||||
if ((rc = spl_vn_init()))
|
||||
if ((rc = spl_kstat_init()))
|
||||
goto out7;
|
||||
|
||||
if ((rc = spl_proc_init()))
|
||||
goto out8;
|
||||
|
||||
if ((rc = spl_kstat_init()))
|
||||
goto out9;
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
|
||||
* Copyright (C) 2007 The Regents of the University of California.
|
||||
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
|
||||
* Written by Brian Behlendorf <behlendorf1@llnl.gov>.
|
||||
* UCRL-CODE-235197
|
||||
*
|
||||
* This file is part of the SPL, Solaris Porting Layer.
|
||||
* For details, see <http://zfsonlinux.org/>.
|
||||
*
|
||||
* The SPL is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* The SPL is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with the SPL. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Solaris Porting Layer (SPL) Mutex Implementation.
|
||||
*/
|
||||
|
||||
#include <sys/mutex.h>
|
||||
|
||||
int spl_mutex_init(void) { return 0; }
|
||||
void spl_mutex_fini(void) { }
|
@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
|
||||
* Copyright (C) 2007 The Regents of the University of California.
|
||||
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
|
||||
* Written by Brian Behlendorf <behlendorf1@llnl.gov>.
|
||||
* UCRL-CODE-235197
|
||||
*
|
||||
* This file is part of the SPL, Solaris Porting Layer.
|
||||
* For details, see <http://zfsonlinux.org/>.
|
||||
*
|
||||
* The SPL is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* The SPL is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with the SPL. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Solaris Porting Layer (SPL) Reader/Writer Lock Implementation.
|
||||
*/
|
||||
|
||||
int spl_rw_init(void) { return 0; }
|
||||
void spl_rw_fini(void) { }
|
Loading…
Reference in New Issue
Block a user