This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / fs / cifs / fcntl.c
index 4403fc3..39d7b89 100644 (file)
@@ -39,9 +39,18 @@ int cifs_directory_notify(unsigned long arg, struct file * file)
        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);
        full_path = build_path_from_dentry(file->f_dentry);
-       cFYI(1,("cifs dir notify on file %s",full_path));
-       /* CIFSSMBNotify */
+       up(&file->f_dentry->d_sb->s_vfs_rename_sem);
+
+       if(full_path == NULL) {
+               rc = -ENOMEM;
+       } else {
+               cFYI(1,("cifs dir notify on file %s",full_path));
+               /* CIFSSMBNotify(xid, pTcon, full_path, cifs_sb->local_nls);*/
+       }
+       
        FreeXid(xid);
        return rc;
 }