diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 74f92b717f78..49d565412827 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -667,6 +667,8 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry) | |||
667 | { | 667 | { |
668 | if (IS_ROOT(dentry)) | 668 | if (IS_ROOT(dentry)) |
669 | return 1; | 669 | return 1; |
670 | if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONE) | ||
671 | return 0; | ||
670 | if (!nfs_verify_change_attribute(dir, dentry->d_time)) | 672 | if (!nfs_verify_change_attribute(dir, dentry->d_time)) |
671 | return 0; | 673 | return 0; |
672 | /* Revalidate nfsi->cache_change_attribute before we declare a match */ | 674 | /* Revalidate nfsi->cache_change_attribute before we declare a match */ |
@@ -750,6 +752,8 @@ int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry, | |||
750 | /* Don't revalidate a negative dentry if we're creating a new file */ | 752 | /* Don't revalidate a negative dentry if we're creating a new file */ |
751 | if (nd != NULL && nfs_lookup_check_intent(nd, LOOKUP_CREATE) != 0) | 753 | if (nd != NULL && nfs_lookup_check_intent(nd, LOOKUP_CREATE) != 0) |
752 | return 0; | 754 | return 0; |
755 | if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) | ||
756 | return 1; | ||
753 | return !nfs_check_verifier(dir, dentry); | 757 | return !nfs_check_verifier(dir, dentry); |
754 | } | 758 | } |
755 | 759 | ||