diff options
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index e8c53c80dbd5..b97ff48b7df6 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -700,9 +700,9 @@ lookup_out: | |||
700 | } | 700 | } |
701 | 701 | ||
702 | static int | 702 | static int |
703 | cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) | 703 | cifs_d_revalidate(struct dentry *direntry, unsigned int flags) |
704 | { | 704 | { |
705 | if (nd && (nd->flags & LOOKUP_RCU)) | 705 | if (flags & LOOKUP_RCU) |
706 | return -ECHILD; | 706 | return -ECHILD; |
707 | 707 | ||
708 | if (direntry->d_inode) { | 708 | if (direntry->d_inode) { |
@@ -731,7 +731,7 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) | |||
731 | * This may be nfsd (or something), anyway, we can't see the | 731 | * This may be nfsd (or something), anyway, we can't see the |
732 | * intent of this. So, since this can be for creation, drop it. | 732 | * intent of this. So, since this can be for creation, drop it. |
733 | */ | 733 | */ |
734 | if (!nd) | 734 | if (!flags) |
735 | return 0; | 735 | return 0; |
736 | 736 | ||
737 | /* | 737 | /* |
@@ -739,7 +739,7 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) | |||
739 | * case sensitive name which is specified by user if this is | 739 | * case sensitive name which is specified by user if this is |
740 | * for creation. | 740 | * for creation. |
741 | */ | 741 | */ |
742 | if (nd->flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET)) | 742 | if (flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET)) |
743 | return 0; | 743 | return 0; |
744 | 744 | ||
745 | if (time_after(jiffies, direntry->d_time + HZ) || !lookupCacheEnabled) | 745 | if (time_after(jiffies, direntry->d_time + HZ) || !lookupCacheEnabled) |