diff options
author | Suresh Jayaraman <sjayaraman@suse.com> | 2011-10-12 02:21:53 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-10-13 00:42:13 -0400 |
commit | 8bc4392a1e50f346e97f8777aaefd9cfc3d45c9f (patch) | |
tree | 5f2c6e148aadceb6ca5491885f02b66f5bb68c05 /fs/cifs | |
parent | c9c4708fdf63d26e3fdfc65bba9e82e654cae285 (diff) |
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 <alex@swen.nu>
Cc: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifs_debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, | |||
526 | char c; | 526 | char c; |
527 | int rc; | 527 | int rc; |
528 | 528 | ||
529 | printk(KERN_WARNING "CIFS: The /proc/fs/cifs/OplockEnabled interface " | ||
530 | "will be removed in kernel version 3.4. Please migrate to " | ||
531 | "using the 'enable_oplocks' module parameter in cifs.ko.\n"); | ||
529 | rc = get_user(c, buffer); | 532 | rc = get_user(c, buffer); |
530 | if (rc) | 533 | if (rc) |
531 | return rc; | 534 | return rc; |