Commit 6bf09fe3 authored by Steve French's avatar Steve French Committed by Steve French

Return error correctly on revalidate so dentry will be dropped.

parent 13d3261c
Version 0.91 Version 0.91
------------ ------------
Fix oops in reopen_files when invalid dentry. drop dentry on server rename. Fix oops in reopen_files when invalid dentry. drop dentry on server rename
Fix cases where pid is now tgid and on revalidate errors. Fix cases where pid is now tgid
Version 0.90 Version 0.90
------------ ------------
......
...@@ -587,12 +587,24 @@ cifs_revalidate(struct dentry *direntry) ...@@ -587,12 +587,24 @@ cifs_revalidate(struct dentry *direntry)
} }
} }
if (cifs_sb->tcon->ses->capabilities & CAP_UNIX) if (cifs_sb->tcon->ses->capabilities & CAP_UNIX) {
cifs_get_inode_info_unix(&direntry->d_inode, full_path, rc = cifs_get_inode_info_unix(&direntry->d_inode, full_path,
direntry->d_sb); direntry->d_sb);
else if(rc) {
cifs_get_inode_info(&direntry->d_inode, full_path, NULL, cFYI(1,("error on getting revalidate info %d",rc));
/* if(rc != -ENOENT)
rc = 0; */ /* BB should we cache info on certain errors? */
}
} else {
rc = cifs_get_inode_info(&direntry->d_inode, full_path, NULL,
direntry->d_sb); direntry->d_sb);
if(rc) {
cFYI(1,("error on getting revalidate info %d",rc));
/* if(rc != -ENOENT)
rc = 0; */ /* BB should we cache info on certain errors? */
}
}
/* should we remap certain errors, access denied?, to zero */
/* BB if not oplocked, invalidate inode pages if mtime has changed */ /* BB if not oplocked, invalidate inode pages if mtime has changed */
......
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