Skip to content

Commit

Permalink
[XFS] ktrace kt_lock is unused, remove it.
Browse files Browse the repository at this point in the history
SGI-PV: 970382
SGI-Modid: xfs-linux-melb:xfs-kern:29747a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
  • Loading branch information
Eric Sandeen authored and Lachlan McIlroy committed Feb 7, 2008
1 parent 3685c2a commit 3a0e487
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions fs/xfs/support/ktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ ktrace_alloc(int nentries, unsigned int __nocast sleep)
return NULL;
}

spinlock_init(&(ktp->kt_lock), "kt_lock");

ktp->kt_entries = ktep;
ktp->kt_nentries = nentries;
ktp->kt_index = 0;
Expand All @@ -114,8 +112,6 @@ ktrace_free(ktrace_t *ktp)
if (ktp == (ktrace_t *)NULL)
return;

spinlock_destroy(&ktp->kt_lock);

/*
* Special treatment for the Vnode trace buffer.
*/
Expand Down
1 change: 0 additions & 1 deletion fs/xfs/support/ktrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ typedef struct ktrace_entry {
* Trace buffer header structure.
*/
typedef struct ktrace {
lock_t kt_lock; /* mutex to guard counters */
int kt_nentries; /* number of entries in trace buf */
int kt_index; /* current index in entries */
int kt_rollover;
Expand Down

0 comments on commit 3a0e487

Please sign in to comment.