diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-07 10:32:56 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-30 04:12:03 -0400 |
| commit | 117bf5fbdbdc7a5394e5718b3354238961c83067 (patch) | |
| tree | 06a063f3a3b92bd1896a87ff14bdb0f8900dbf6f /fs/hpfs/buffer.c | |
| parent | 18cb657ca1bafe635f368346a1676fb04c512edf (diff) | |
hpfs: Convert sbi->hpfs_creation_de to mutex
sbi->hpfs_creation_de is used as mutex so make it a mutex.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Christoph Hellwig <hch@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
LKML-Reference: <20100907125056.228874895@linutronix.de>
Diffstat (limited to 'fs/hpfs/buffer.c')
| -rw-r--r-- | fs/hpfs/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hpfs/buffer.c b/fs/hpfs/buffer.c index eac5f96323e3..793cb9d943d2 100644 --- a/fs/hpfs/buffer.c +++ b/fs/hpfs/buffer.c | |||
| @@ -14,7 +14,7 @@ void hpfs_lock_creation(struct super_block *s) | |||
| 14 | #ifdef DEBUG_LOCKS | 14 | #ifdef DEBUG_LOCKS |
| 15 | printk("lock creation\n"); | 15 | printk("lock creation\n"); |
| 16 | #endif | 16 | #endif |
| 17 | down(&hpfs_sb(s)->hpfs_creation_de); | 17 | mutex_lock(&hpfs_sb(s)->hpfs_creation_de); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | void hpfs_unlock_creation(struct super_block *s) | 20 | void hpfs_unlock_creation(struct super_block *s) |
| @@ -22,7 +22,7 @@ void hpfs_unlock_creation(struct super_block *s) | |||
| 22 | #ifdef DEBUG_LOCKS | 22 | #ifdef DEBUG_LOCKS |
| 23 | printk("unlock creation\n"); | 23 | printk("unlock creation\n"); |
| 24 | #endif | 24 | #endif |
| 25 | up(&hpfs_sb(s)->hpfs_creation_de); | 25 | mutex_unlock(&hpfs_sb(s)->hpfs_creation_de); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | /* Map a sector into a buffer and return pointers to it and to the buffer. */ | 28 | /* Map a sector into a buffer and return pointers to it and to the buffer. */ |
