|
@@ -663,10 +663,8 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd)
|
|
|
* case sensitive name which is specified by user if this is
|
|
|
* for creation.
|
|
|
*/
|
|
|
- if (!(nd->flags & (LOOKUP_CONTINUE | LOOKUP_PARENT))) {
|
|
|
- if (nd->flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET))
|
|
|
- return 0;
|
|
|
- }
|
|
|
+ if (nd->flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET))
|
|
|
+ return 0;
|
|
|
|
|
|
if (time_after(jiffies, direntry->d_time + HZ) || !lookupCacheEnabled)
|
|
|
return 0;
|