forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
4a94103554
commit
756b0322e5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user