]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add a cache= option to better describe the different cache flavors
authorJeff Layton <jlayton@redhat.com>
Wed, 16 May 2012 11:50:15 +0000 (07:50 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 17 May 2012 01:13:32 +0000 (20:13 -0500)
commitcde1ecfd3946411ee5b24581a4931dad7825b23c
treea60daa9d2a25f65a232d282da6529d2b8ccd87d0
parent4380835dcd8e44b56ee9b7ee3e68560aa5067aac
cifs: add a cache= option to better describe the different cache flavors

Currently, we have several mount options that control cifs' cache
behavior, but those options aren't considered to be mutually exclusive.
The result is poorly-defined when someone specifies more than one of
these options at mount time.

Fix this by adding a new cache= mount option that will supercede
"strictcache", and "forcedirectio". That will help make it clear that
these options are mutually exclusive. Also, change the legacy options to
be mutually exclusive too, to ensure that users don't get surprises.

Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/connect.c