aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-05-16 07:53:00 -0400
committerSteve French <sfrench@us.ibm.com>2012-05-16 21:13:32 -0400
commit09983b2fab80fa037b1dcf9a11de5a70df59ef7f (patch)
treec381e151414e42c130d1987bc0638ae9a51b6418 /fs/cifs
parent15b6a47322940beb74a83ffc1632c1ee1d00f35b (diff)
cifs: add deprecation warnings to strictcache and forcedirectio
Leave them in for 2 releases and remove for 3.7. Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 4898759d97cc..34186805e639 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1457,10 +1457,16 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
1457 case Opt_direct: 1457 case Opt_direct:
1458 vol->direct_io = true; 1458 vol->direct_io = true;
1459 vol->strict_io = false; 1459 vol->strict_io = false;
1460 cERROR(1, "The \"directio\" option will be removed in "
1461 "3.7. Please switch to the \"cache=none\" "
1462 "option.");
1460 break; 1463 break;
1461 case Opt_strictcache: 1464 case Opt_strictcache:
1462 vol->direct_io = false; 1465 vol->direct_io = false;
1463 vol->strict_io = true; 1466 vol->strict_io = true;
1467 cERROR(1, "The \"strictcache\" option will be removed "
1468 "in 3.7. Please switch to the \"cache=strict\" "
1469 "option.");
1464 break; 1470 break;
1465 case Opt_noac: 1471 case Opt_noac:
1466 printk(KERN_WARNING "CIFS: Mount option noac not " 1472 printk(KERN_WARNING "CIFS: Mount option noac not "