[XFS] mutex fallout - fix debug builds and remove no-longer-useful comment.
authorNathan Scott <nathans@bruce>
Mon, 16 Jan 2006 05:21:34 +0000 (16:21 +1100)
committerNathan Scott <nathans@bruce>
Mon, 16 Jan 2006 05:21:34 +0000 (16:21 +1100)
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/mutex.h
fs/xfs/quota/xfs_qm.c

index d3369b6ca168e4f9fa1d75541dbf25eeee4d0bc1..2a88d56c4dc2c13c3d4bba62e896664d1513a076 100644 (file)
 #ifndef __XFS_SUPPORT_MUTEX_H__
 #define __XFS_SUPPORT_MUTEX_H__
 
-#include <linux/spinlock.h>
 #include <linux/mutex.h>
 
-/*
- * Map the mutex'es from IRIX to Linux semaphores.
- *
- * Destroy just simply initializes to -99 which should block all other
- * callers.
- */
-#define MUTEX_DEFAULT          0x0
-
-typedef struct mutex           mutex_t;
-//#define mutex_destroy(lock)                  do{}while(0)
+typedef struct mutex mutex_t;
 
 #endif /* __XFS_SUPPORT_MUTEX_H__ */
index 7dcdd0640c32ef9f6dea4ce87b960a35f5b5f518..3384bfefee5b4c1801cd9152c22610f4c479fdc0 100644 (file)
@@ -167,7 +167,7 @@ xfs_Gqm_init(void)
        xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO;
        xqm->qm_nrefs = 0;
 #ifdef DEBUG
-       xfs_mutex_init(&qcheck_lock, MUTEX_DEFAULT, "qchk");
+       mutex_init(&qcheck_lock);
 #endif
        return xqm;
 }