xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: [PATCH 12/14] xfs: kill useless spinlock_destroy macro
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 29 Nov 2010 12:38:30 +1100
In-reply-to: <1290994712-21376-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1290994712-21376-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>