Skip to content

Commit

Permalink
cifs: warn about deprecation of /proc/fs/cifs/OplockEnabled interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Suresh Jayaraman authored and Steve French committed Oct 13, 2011
1 parent c9c4708 commit 8bc4392
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/cifs/cifs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bc4392

Please sign in to comment.