]> err.no Git - linux-2.6/blobdiff - fs/cifs/fcntl.c
[PATCH] pci_ids.h: correct naming of 1022:7450 (AMD 8131 Bridge)
[linux-2.6] / fs / cifs / fcntl.c
index d527e2c76073e6c16fdd6192c2bb948c77b268e0..ec4dfe9bf5ef2c84fe91351da3804f37d1b9f502 100644 (file)
@@ -78,13 +78,17 @@ int cifs_dir_notify(struct file * file, unsigned long arg)
        __u32 filter = FILE_NOTIFY_CHANGE_NAME | FILE_NOTIFY_CHANGE_ATTRIBUTES;
        __u16 netfid;
 
+
+       if(experimEnabled == 0)
+               return 0;
+
        xid = GetXid();
        cifs_sb = CIFS_SB(file->f_dentry->d_sb);
        pTcon = cifs_sb->tcon;
 
-       down(&file->f_dentry->d_sb->s_vfs_rename_sem);
+       mutex_lock(&file->f_dentry->d_sb->s_vfs_rename_mutex);
        full_path = build_path_from_dentry(file->f_dentry);
-       up(&file->f_dentry->d_sb->s_vfs_rename_sem);
+       mutex_unlock(&file->f_dentry->d_sb->s_vfs_rename_mutex);
 
        if(full_path == NULL) {
                rc = -ENOMEM;