From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id oAT1bXmS082240 for ; Sun, 28 Nov 2010 19:37:34 -0600 Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 673121C7C9FF for ; Sun, 28 Nov 2010 17:39:14 -0800 (PST) Received: from mail.internode.on.net (bld-mail18.adl2.internode.on.net [150.101.137.103]) by cuda.sgi.com with ESMTP id ONgPEHzpOzPXiYAr for ; Sun, 28 Nov 2010 17:39:14 -0800 (PST) Received: from dastard (unverified [121.44.88.148]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 47778366-1927428 for ; Mon, 29 Nov 2010 12:09:12 +1030 (CDT) Received: from chute ([192.168.1.1] helo=disappointment) by dastard with esmtp (Exim 4.71) (envelope-from ) id 1PMshp-0000e1-T0 for xfs@oss.sgi.com; Mon, 29 Nov 2010 12:39:01 +1100 Received: from dave by disappointment with local (Exim 4.72) (envelope-from ) id 1PMsha-0005cm-EG for xfs@oss.sgi.com; Mon, 29 Nov 2010 12:38:46 +1100 From: Dave Chinner Subject: [PATCH 12/14] xfs: kill useless spinlock_destroy macro Date: Mon, 29 Nov 2010 12:38:30 +1100 Message-Id: <1290994712-21376-13-git-send-email-david@fromorbit.com> In-Reply-To: <1290994712-21376-1-git-send-email-david@fromorbit.com> References: <1290994712-21376-1-git-send-email-david@fromorbit.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com From: Dave Chinner 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 --- 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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs