]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: allow fsc mount option only if CONFIG_CIFS_FSCACHE is set
authorSuresh Jayaraman <sjayaraman@suse.de>
Wed, 24 Nov 2010 12:19:05 +0000 (17:49 +0530)
committerSteve French <sfrench@us.ibm.com>
Tue, 30 Nov 2010 05:49:28 +0000 (05:49 +0000)
commitc383f0dcfbd656d385d93702e25a723390b6793f
tree9e8e54738ebe1c80718ba67d44a7f736ba0af879
parent23ad6b9c4c139a78bbdab7b6e7b904f5b31094cb
cifs: allow fsc mount option only if CONFIG_CIFS_FSCACHE is set

Currently, it is possible to specify 'fsc' mount option even if
CONFIG_CIFS_FSCACHE has not been set. The option is being ignored silently
while the user fscache functionality to work. Fix this by raising error when
the CONFIG option is not set.

Reported-by: Jeff Layton <jlayton@redhat.com>
Reviewed-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/connect.c