smb3: add mount option to allow forced caching of read only share
authorSteve French <stfrench@microsoft.com>
Wed, 28 Aug 2019 04:58:54 +0000 (23:58 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:37 +0000 (11:43 -0500)
commit83bbfa706dda668deb60e96df20327fc79e1716f
treed9682e25e2b3219df510e4f3002c105adf5f36f1
parentac6ad7a8c9f6f1fd43262b2273a45ec1fdd3a981
smb3: add mount option to allow forced caching of read only share

If a share is immutable (at least for the period that it will
be mounted) it would be helpful to not have to revalidate
dentries repeatedly that we know can not be changed remotely.

Add "cache=" option (cache=ro) for mounting read only shares
in order to improve performance in cases in which we know that
the share will not be changing while it is in use.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c