[XFS] mutex fallout - fix debug builds and remove no-longer-useful comment.
Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:
@@ -18,18 +18,8 @@
|
|||||||
#ifndef __XFS_SUPPORT_MUTEX_H__
|
#ifndef __XFS_SUPPORT_MUTEX_H__
|
||||||
#define __XFS_SUPPORT_MUTEX_H__
|
#define __XFS_SUPPORT_MUTEX_H__
|
||||||
|
|
||||||
#include <linux/spinlock.h>
|
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
|
|
||||||
/*
|
typedef struct mutex mutex_t;
|
||||||
* 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)
|
|
||||||
|
|
||||||
#endif /* __XFS_SUPPORT_MUTEX_H__ */
|
#endif /* __XFS_SUPPORT_MUTEX_H__ */
|
||||||
|
@@ -167,7 +167,7 @@ xfs_Gqm_init(void)
|
|||||||
xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO;
|
xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO;
|
||||||
xqm->qm_nrefs = 0;
|
xqm->qm_nrefs = 0;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
xfs_mutex_init(&qcheck_lock, MUTEX_DEFAULT, "qchk");
|
mutex_init(&qcheck_lock);
|
||||||
#endif
|
#endif
|
||||||
return xqm;
|
return xqm;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user