summaryrefslogtreecommitdiffstats
path: root/fs/affs/super.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 14:33:11 +0000
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 17:39:25 +0200
commit756b0322e50aebc4b9afb4488a2d3f6c802b4e64 (patch)
tree2723c4ec42032d7700c57d66ab172d49e8747612 /fs/affs/super.c
parent4a9410355406c31695eab9daeba694d7d9714e9b (diff)
downloadtalos-obmc-linux-756b0322e50aebc4b9afb4488a2d3f6c802b4e64.tar.gz
talos-obmc-linux-756b0322e50aebc4b9afb4488a2d3f6c802b4e64.zip
affs: Use sema_init instead of init_MUTEX
Get rid of init_MUTE() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Christoph Hellwig <hch@infradead.org> Cc: Al Viro <viro@zeniv.linux.org.uk> LKML-Reference: <20100907125056.511395595@linutronix.de>
Diffstat (limited to 'fs/affs/super.c')
-rw-r--r--fs/affs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c
index 33c4e7eef470..9581ea94d5a1 100644
--- a/fs/affs/super.c
+++ b/fs/affs/super.c
@@ -109,8 +109,8 @@ static void init_once(void *foo)
{
struct affs_inode_info *ei = (struct affs_inode_info *) foo;
- init_MUTEX(&ei->i_link_lock);
- init_MUTEX(&ei->i_ext_lock);
+ sema_init(&ei->i_link_lock, 1);
+ sema_init(&ei->i_ext_lock, 1);
inode_init_once(&ei->vfs_inode);
}
OpenPOWER on IntegriCloud