]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: enable fscache iff fsc mount option is used explicitly
authorSuresh Jayaraman <sjayaraman@suse.de>
Wed, 24 Nov 2010 12:19:06 +0000 (17:49 +0530)
committerSteve French <sfrench@us.ibm.com>
Tue, 30 Nov 2010 05:49:32 +0000 (05:49 +0000)
commit660620f310cfd4b1ac7559aaa2b09c36b073bec4
tree2f2b3ffcdbd2448342615bbd5bd45de3eafaa49f
parentc383f0dcfbd656d385d93702e25a723390b6793f
cifs: enable fscache iff fsc mount option is used explicitly

Currently, if CONFIG_CIFS_FSCACHE is set, fscache is enabled on files opened
as read-only irrespective of the 'fsc' mount option. Fix this by enabling
fscache only if 'fsc' mount option is specified explicitly.

Remove an extraneous cFYI debug message and fix a typo while at it.

Reported-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/fscache.c