From 09983b2fab80fa037b1dcf9a11de5a70df59ef7f Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 16 May 2012 07:53:00 -0400 Subject: [PATCH] cifs: add deprecation warnings to strictcache and forcedirectio Leave them in for 2 releases and remove for 3.7. Reviewed-by: Pavel Shilovsky Signed-off-by: Jeff Layton --- fs/cifs/connect.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, case Opt_direct: vol->direct_io = true; vol->strict_io = false; + cERROR(1, "The \"directio\" option will be removed in " + "3.7. Please switch to the \"cache=none\" " + "option."); break; case Opt_strictcache: vol->direct_io = false; vol->strict_io = true; + cERROR(1, "The \"strictcache\" option will be removed " + "in 3.7. Please switch to the \"cache=strict\" " + "option."); break; case Opt_noac: printk(KERN_WARNING "CIFS: Mount option noac not " -- 2.20.1