The Samba-Bugzilla – Attachment 1592 Details for
Bug 3206
caching problem accessing non-existing -> existing files ?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for server side new directory entries (that replace negative dentries)
dir-revalidate.patch (text/plain), 1.18 KB, created by
Steve French
on 2005-11-24 18:17:38 UTC
(
hide
)
Description:
Fix for server side new directory entries (that replace negative dentries)
Filename:
MIME Type:
Creator:
Steve French
Created:
2005-11-24 18:17:38 UTC
Size:
1.18 KB
patch
obsolete
>diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c >index 05b5258..45b67e9 100644 >--- a/fs/cifs/inode.c >+++ b/fs/cifs/inode.c >@@ -1039,14 +1042,18 @@ int cifs_revalidate(struct dentry *diren > filemap_fdatawrite(direntry->d_inode->i_mapping); > } > if (invalidate_inode) { >- if (direntry->d_inode->i_mapping) >- filemap_fdatawait(direntry->d_inode->i_mapping); >- /* may eventually have to do this for open files too */ >- if (list_empty(&(cifsInode->openFileList))) { >- /* Has changed on server - flush read ahead pages */ >- cFYI(1, ("Invalidating read ahead data on " >- "closed file")); >- invalidate_remote_inode(direntry->d_inode); >+ if(S_ISDIR(direntry->d_inode->i_mode)) { >+ shrink_dcache_parent(direntry); >+ } else if (S_ISREG(direntry->d_inode->i_mode)) { >+ if (direntry->d_inode->i_mapping) >+ filemap_fdatawait(direntry->d_inode->i_mapping); >+ /* may eventually have to do this for open files too */ >+ if (list_empty(&(cifsInode->openFileList))) { >+ /* changed on server - flush read ahead pages */ >+ cFYI(1, ("Invalidating read ahead data on " >+ "closed file")); >+ invalidate_remote_inode(direntry->d_inode); >+ } > } > } > /* up(&direntry->d_inode->i_sem); */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3206
:
1591
| 1592 |
1593