Message ID | 20210626160956.323472-3-trond.myklebust@hammerspace.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Embryonic support for case insensitive filesystems | expand |
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 1a6d2867fba4..eda0d816cbd1 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1438,6 +1438,9 @@ int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry, return 0; if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) return 1; + /* Case insensitive server? Revalidate negative dentries */ + if (nfs_server_capable(dir, NFS_CAP_CASE_INSENSITIVE)) + return 1; return !nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU); }