[PATCH 12/12] xfs: kill useless spinlock_destroy macro
Dave Chinner
david at fromorbit.com
Sun Dec 12 22:44:43 CST 2010
From: Dave Chinner <dchinner at 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 at redhat.com>
Reviewed-by: Christoph Hellwig <hch at lst.de>
---
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 ccebd86..e7cfa27 100644
--- a/fs/xfs/linux-2.6/xfs_linux.h
+++ b/fs/xfs/linux-2.6/xfs_linux.h
@@ -113,8 +113,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 58326ba..7fadc36 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1141,7 +1141,6 @@ out_free_iclog:
xfs_buf_free(iclog->ic_bp);
kmem_free(iclog);
}
- spinlock_destroy(&log->l_icloglock);
xfs_buf_free(log->l_xbuf);
out_free_log:
kmem_free(log);
@@ -1458,7 +1457,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
More information about the xfs
mailing list