From: Suresh Jayaraman Date: Wed, 12 Oct 2011 06:21:53 +0000 (+0530) Subject: cifs: warn about deprecation of /proc/fs/cifs/OplockEnabled interface X-Git-Tag: next-20111013~84^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ba8ad28ae061cefde2b99f06a8284cdfe7213754;p=karo-tx-linux.git cifs: warn about deprecation of /proc/fs/cifs/OplockEnabled interface The plan is to deprecate this interface by kernel version 3.4. Changes since v1 - add a '\n' to the printk. Reported-by: Alexander Swen Cc: Jeff Layton Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French --- diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index e1715313f398..84e8c0724704 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -526,6 +526,9 @@ static ssize_t cifs_oplock_proc_write(struct file *file, char c; int rc; + printk(KERN_WARNING "CIFS: The /proc/fs/cifs/OplockEnabled interface " + "will be removed in kernel version 3.4. Please migrate to " + "using the 'enable_oplocks' module parameter in cifs.ko.\n"); rc = get_user(c, buffer); if (rc) return rc;