Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a0e4870 authored by Eric Sandeen's avatar Eric Sandeen Committed by Lachlan McIlroy
Browse files

[XFS] ktrace kt_lock is unused, remove it.



SGI-PV: 970382
SGI-Modid: xfs-linux-melb:xfs-kern:29747a

Signed-off-by: default avatarEric Sandeen <sandeen@sandeen.net>
Signed-off-by: default avatarDonald Douwsma <donaldd@sgi.com>
Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
parent 3685c2a1
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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.
	 */
+0 −1
Original line number Diff line number Diff line
@@ -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;