[XFS] ktrace kt_lock is unused, remove it.
authorEric Sandeen <sandeen@sandeen.net>
Thu, 11 Oct 2007 07:43:32 +0000 (17:43 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 05:47:25 +0000 (16:47 +1100)
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>
fs/xfs/support/ktrace.c
fs/xfs/support/ktrace.h

index 5cf2e86caa7198653b37f086bf02335d2599fad6..119611ec21d3e07c6329e8ad5a52c20d3817e3e2 100644 (file)
@@ -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;
@@ -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.
         */
index 0d73216287c06b3cd1b08b3600869277d19e8f43..1e6d4a38ba28fd41fd8f904b3dda8ccb55ff8ead 100644 (file)
@@ -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;