cifs: add mount option to enable local caching
authorSuresh Jayaraman <sjayaraman@suse.de>
Mon, 5 Jul 2010 12:43:36 +0000 (18:13 +0530)
committerSteve French <sfrench@us.ibm.com>
Mon, 2 Aug 2010 12:40:37 +0000 (12:40 +0000)
commitfa1df75d4debde6d843e616df656f50a92958737
tree51ed23f935dcd4536417613cf88c2dcfc369fd08
parent56698236e1294848c63d4768673865ae5a9c69e0
cifs: add mount option to enable local caching

Add a mount option 'fsc' to enable local caching on CIFS.

I considered adding a separate debug bit for caching, but it appears that
debugging would be relatively easier with the normal CIFS_INFO level.

As the cifs-utils (userspace) changes are not done yet, this patch enables
'fsc' by default to enable testing.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/connect.c