cifs: convert revalidate of directories to using directory metadata cache timeout
authorSteve French <stfrench@microsoft.com>
Tue, 23 Feb 2021 22:16:09 +0000 (16:16 -0600)
committerSteve French <stfrench@microsoft.com>
Thu, 25 Feb 2021 17:47:46 +0000 (11:47 -0600)
commitddaf6d4a9253939036fa70d71534e482ee7413f6
tree8e5e63566bf5030925cb915564a7494561a88b86
parent4c9f948142a550af416a2bfb5e56d29ce29e92cf
cifs: convert revalidate of directories to using directory metadata cache timeout

The new optional mount parm, "acdirmax" allows caching the metadata
for a directory longer than file metadata, which can be very helpful
for performance.  Convert cifs_inode_needs_reval to check acdirmax
for revalidating directory metadata.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-By: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/inode.c