@@ -251,9 +251,6 @@ int cifs_posix_open(char *full_path, struct inode **pinode,
cifs_fattr_to_inode(*pinode, &fattr);
}
- if (mnt)
- cifs_new_fileinfo(*pinode, *pnetfid, NULL, mnt, oflags);
-
posix_open_ret:
kfree(presp_data);
return rc;
@@ -462,13 +459,10 @@ cifs_create_set_dentry:
cFYI(1, "Create worked, get_inode_info failed rc = %d", rc);
/* nfsd case - nfs srv does not set nd */
- if ((nd == NULL) || (!(nd->flags & LOOKUP_OPEN))) {
+ if ((nd == NULL) || (!(nd->flags & LOOKUP_OPEN)))
/* mknod case - do not leave file open */
CIFSSMBClose(xid, tcon, fileHandle);
- } else if (!(posix_create) && (newinode)) {
- cifs_new_fileinfo(newinode, fileHandle, NULL,
- nd->path.mnt, oflags);
- }
+
cifs_create_out:
kfree(buf);
kfree(full_path);