Commit 91f43975 authored by Steve French's avatar Steve French Committed by Steve French

hash cifs inodes

Signed-off-by: Steve French (sfrench@us.ibm.com)
parent 6e67e940
......@@ -1534,6 +1534,7 @@ construct_dentry(struct qstr *qstring, struct file *file,
if(*ptmp_inode == NULL)
return;
d_instantiate(tmp_dentry, *ptmp_inode);
insert_inode_hash(*ptmp_inode);
}
} else {
tmp_dentry = d_alloc(file->f_dentry, qstring);
......@@ -1549,6 +1550,7 @@ construct_dentry(struct qstr *qstring, struct file *file,
return;
d_instantiate(tmp_dentry, *ptmp_inode);
d_rehash(tmp_dentry);
insert_inode_hash(*ptmp_inode);
}
tmp_dentry->d_time = jiffies;
......
......@@ -80,9 +80,9 @@ cifs_get_inode_info_unix(struct inode **pinode,
/* get new inode */
if (*pinode == NULL) {
*pinode = new_inode(sb);
}
if(*pinode == NULL) {
if(*pinode == NULL)
return -ENOMEM;
insert_inode_hash(*pinode);
}
inode = *pinode;
......@@ -235,9 +235,10 @@ cifs_get_inode_info(struct inode **pinode, const unsigned char *search_path,
/* get new inode */
if (*pinode == NULL) {
*pinode = new_inode(sb);
}
if(*pinode == NULL)
return -ENOMEM;
insert_inode_hash(*pinode);
}
inode = *pinode;
cifsInfo = CIFS_I(inode);
pfindData->Attributes = le32_to_cpu(pfindData->Attributes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment