]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ncpfs/ncplib_kernel.c
fix epoll single pass code and add wait-exclusive flag
[linux-2.6-omap-h63xx.git] / fs / ncpfs / ncplib_kernel.c
index c755e1848a42366d0a08d4e379680b3fc2665a86..551e0bac7aac6fd20476b844c8929e0116002f77 100644 (file)
@@ -10,7 +10,6 @@
  */
 
 
-#include <linux/config.h>
 
 #include "ncplib_kernel.h"
 
@@ -291,7 +290,7 @@ ncp_make_closed(struct inode *inode)
        int err;
 
        err = 0;
-       down(&NCP_FINFO(inode)->open_sem);      
+       mutex_lock(&NCP_FINFO(inode)->open_mutex);
        if (atomic_read(&NCP_FINFO(inode)->opened) == 1) {
                atomic_set(&NCP_FINFO(inode)->opened, 0);
                err = ncp_close_file(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle);
@@ -301,7 +300,7 @@ ncp_make_closed(struct inode *inode)
                                NCP_FINFO(inode)->volNumber,
                                NCP_FINFO(inode)->dirEntNum, err);
        }
-       up(&NCP_FINFO(inode)->open_sem);
+       mutex_unlock(&NCP_FINFO(inode)->open_mutex);
        return err;
 }