Commit 4bc8f933 authored by Steve French's avatar Steve French Committed by Steve French

Do not cache inode metadata when cache time set to 0 (fix hardlink count caching)

parent 12475cc4
Version 1.09
------------
Fix /proc/fs module unload warning message (that could be logged
to the kernel log)
to the kernel log). Fix intermittent failure in connectathon
test7 (hardlink count not immediately refreshed in case in which
inode metadata can be incorrectly kept cached when time near zero)
Version 1.08
------------
......
......@@ -582,12 +582,14 @@ cifs_revalidate(struct dentry *direntry)
full_path = build_path_from_dentry(direntry);
cFYI(1,
("Revalidate full path: %s for inode 0x%p with count %d dentry: 0x%p d_time %ld at time %ld ",
("Revalidate: %s inode 0x%p count %d dentry: 0x%p d_time %ld jiffies %ld",
full_path, direntry->d_inode,
direntry->d_inode->i_count.counter, direntry,
direntry->d_time, jiffies));
if (time_before(jiffies, cifsInode->time + HZ) && lookupCacheEnabled) {
if (cifsInode->time == 0){
/* was set to zero previously to force revalidate */
} else if (time_before(jiffies, cifsInode->time + HZ) && lookupCacheEnabled) {
if((S_ISREG(direntry->d_inode->i_mode) == 0) ||
(direntry->d_inode->i_nlink == 1)) {
if (full_path)
......
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