Merge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6
Pull cifs fix from Steve French: "Small cifs fix for metadata caching" * 'for-linus' of git://git.samba.org/sfrench/cifs-2.6: cifs: fix actimeo=0 corner case when cifs_i->time == jiffies
This commit is contained in:
commit
19726630c6
|
@ -1737,6 +1737,9 @@ cifs_inode_needs_reval(struct inode *inode)
|
|||
if (cifs_i->time == 0)
|
||||
return true;
|
||||
|
||||
if (!cifs_sb->actimeo)
|
||||
return true;
|
||||
|
||||
if (!time_in_range(jiffies, cifs_i->time,
|
||||
cifs_i->time + cifs_sb->actimeo))
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue