projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[XFS] ktrace kt_lock is unused, remove it.
[deliverable/linux.git]
/
fs
/
xfs
/
support
/
ktrace.c
diff --git
a/fs/xfs/support/ktrace.c
b/fs/xfs/support/ktrace.c
index 841aa4c15b8a205627ed7e6d2f30cbb2059abaf3..119611ec21d3e07c6329e8ad5a52c20d3817e3e2 100644
(file)
--- a/
fs/xfs/support/ktrace.c
+++ b/
fs/xfs/support/ktrace.c
@@
-39,8
+39,8
@@
ktrace_init(int zentries)
void
ktrace_uninit(void)
{
void
ktrace_uninit(void)
{
- kmem_
cach
e_destroy(ktrace_hdr_zone);
- kmem_
cach
e_destroy(ktrace_ent_zone);
+ kmem_
zon
e_destroy(ktrace_hdr_zone);
+ kmem_
zon
e_destroy(ktrace_ent_zone);
}
/*
}
/*
@@
-75,7
+75,7
@@
ktrace_alloc(int nentries, unsigned int __nocast sleep)
sleep);
} else {
ktep = (ktrace_entry_t*)kmem_zalloc((nentries * sizeof(*ktep)),
sleep);
} else {
ktep = (ktrace_entry_t*)kmem_zalloc((nentries * sizeof(*ktep)),
- sleep);
+ sleep
| KM_LARGE
);
}
if (ktep == NULL) {
}
if (ktep == NULL) {
@@
-90,8
+90,6
@@
ktrace_alloc(int nentries, unsigned int __nocast sleep)
return NULL;
}
return NULL;
}
- spinlock_init(&(ktp->kt_lock), "kt_lock");
-
ktp->kt_entries = ktep;
ktp->kt_nentries = nentries;
ktp->kt_index = 0;
ktp->kt_entries = ktep;
ktp->kt_nentries = nentries;
ktp->kt_index = 0;
@@
-114,8
+112,6
@@
ktrace_free(ktrace_t *ktp)
if (ktp == (ktrace_t *)NULL)
return;
if (ktp == (ktrace_t *)NULL)
return;
- spinlock_destroy(&ktp->kt_lock);
-
/*
* Special treatment for the Vnode trace buffer.
*/
/*
* Special treatment for the Vnode trace buffer.
*/
This page took
0.024487 seconds
and
5
git commands to generate.