diff options
| author | Nathan Scott <nathans@bruce> | 2006-01-16 00:21:34 -0500 | 
|---|---|---|
| committer | Nathan Scott <nathans@bruce> | 2006-01-16 00:21:34 -0500 | 
| commit | c2e81432201d99cc48ff6492567fe05204cc8d7e (patch) | |
| tree | ea3630e08544dba25120f39f27dcc73b281378fb | |
| parent | 54245702ab63a9a0b1ccf78bc37b57e778bb3bcc (diff) | |
[XFS] mutex fallout - fix debug builds and remove no-longer-useful comment.
Signed-off-by: Nathan Scott <nathans@sgi.com>
| -rw-r--r-- | fs/xfs/linux-2.6/mutex.h | 12 | ||||
| -rw-r--r-- | fs/xfs/quota/xfs_qm.c | 2 | 
2 files changed, 2 insertions, 12 deletions
| diff --git a/fs/xfs/linux-2.6/mutex.h b/fs/xfs/linux-2.6/mutex.h index d3369b6ca168..2a88d56c4dc2 100644 --- a/fs/xfs/linux-2.6/mutex.h +++ b/fs/xfs/linux-2.6/mutex.h | |||
| @@ -18,18 +18,8 @@ | |||
| 18 | #ifndef __XFS_SUPPORT_MUTEX_H__ | 18 | #ifndef __XFS_SUPPORT_MUTEX_H__ | 
| 19 | #define __XFS_SUPPORT_MUTEX_H__ | 19 | #define __XFS_SUPPORT_MUTEX_H__ | 
| 20 | 20 | ||
| 21 | #include <linux/spinlock.h> | ||
| 22 | #include <linux/mutex.h> | 21 | #include <linux/mutex.h> | 
| 23 | 22 | ||
| 24 | /* | 23 | typedef struct mutex mutex_t; | 
| 25 | * Map the mutex'es from IRIX to Linux semaphores. | ||
| 26 | * | ||
| 27 | * Destroy just simply initializes to -99 which should block all other | ||
| 28 | * callers. | ||
| 29 | */ | ||
| 30 | #define MUTEX_DEFAULT 0x0 | ||
| 31 | |||
| 32 | typedef struct mutex mutex_t; | ||
| 33 | //#define mutex_destroy(lock) do{}while(0) | ||
| 34 | 24 | ||
| 35 | #endif /* __XFS_SUPPORT_MUTEX_H__ */ | 25 | #endif /* __XFS_SUPPORT_MUTEX_H__ */ | 
| diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c index 7dcdd0640c32..3384bfefee5b 100644 --- a/fs/xfs/quota/xfs_qm.c +++ b/fs/xfs/quota/xfs_qm.c | |||
| @@ -167,7 +167,7 @@ xfs_Gqm_init(void) | |||
| 167 | xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO; | 167 | xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO; | 
| 168 | xqm->qm_nrefs = 0; | 168 | xqm->qm_nrefs = 0; | 
| 169 | #ifdef DEBUG | 169 | #ifdef DEBUG | 
| 170 | xfs_mutex_init(&qcheck_lock, MUTEX_DEFAULT, "qchk"); | 170 | mutex_init(&qcheck_lock); | 
| 171 | #endif | 171 | #endif | 
| 172 | return xqm; | 172 | return xqm; | 
| 173 | } | 173 | } | 
