[PATCH 12/14] xfs: kill useless spinlock_destroy macro

Dave Chinner
2010-11-29T01:37:34Z

From: Dave Chinner <dchinner@redhat.com>

It is only used in 2 places in the log code, and is an empty macro,
so get rid of it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/linux-2.6/xfs_linux.h | 2 --
fs/xfs/xfs_log.c | 2 --
2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h
index 9fa4f2a..559bf25 100644
--- a/fs/xfs/linux-2.6/xfs_linux.h
+++ b/fs/xfs/linux-2.6/xfs_linux.h
@@ -114,8 +114,6 @@
#define current_restore_flags_nested(sp, f) \
(current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))

-#define spinlock_destroy(lock)
-
#define NBBY 8 /* number of bits per byte */

/*
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index d54d8f8..5c455cb 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1197,7 +1197,6 @@ out_free_iclog:
}
kmem_free(iclog);
}
- spinlock_destroy(&log->l_icloglock);
xfs_buf_free(log->l_xbuf);
out_free_log:
kmem_free(log);
@@ -1513,7 +1512,6 @@ xlog_dealloc_log(xlog_t *log)
kmem_free(iclog);
iclog = next_iclog;
}
- spinlock_destroy(&log->l_icloglock);

xfs_buf_free(log->l_xbuf);
log->l_mp->m_log = NULL;
--
1.7.2.3