NFS: Readdirplus can't help lookup for case insensitive filesystems

If the filesystem is case insensitive, then readdirplus can't help with
cache misses, since it won't return case folded variants of the filename.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
Trond Myklebust 2022-02-19 09:56:45 -05:00
parent c49c68944f
commit 2c2c336506

View File

@ -696,6 +696,8 @@ void nfs_readdir_record_entry_cache_miss(struct inode *dir)
static void nfs_lookup_advise_force_readdirplus(struct inode *dir)
{
if (nfs_server_capable(dir, NFS_CAP_CASE_INSENSITIVE))
return;
nfs_readdir_record_entry_cache_miss(dir);
}