OSDN Git Service

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)
commitb81209de2455c6051cf67f2acd8ec26ccb8caf83
tree2f2b3ffcdbd2448342615bbd5bd45de3eafaa49f
parent607a569da4cf289fd8eb3887080ed3b212e3112d
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