sema-init-takes-2-args-20050415

FIXES 18271

init sema correctly
This commit is contained in:
Chas Williams 2005-04-15 14:40:31 +00:00 committed by Derrick Brashear
parent b086690fbb
commit 671b02194a

View File

@ -936,7 +936,7 @@ restart:
#if defined(STRUCT_INODE_HAS_INOTIFY_LOCK) || defined(STRUCT_INODE_HAS_INOTIFY_SEM)
INIT_LIST_HEAD(&ip->inotify_watches);
#if defined(STRUCT_INODE_HAS_INOTIFY_SEM)
sema_init(&ip->inotify_sem);
sema_init(&ip->inotify_sem, 1);
#else
spin_lock_init(&ip->inotify_lock);
#endif