CIFS: Add cifs_set_oplock_level
authorPavel Shilovsky <piastryyy@gmail.com>
Tue, 2 Nov 2010 09:00:42 +0000 (12:00 +0300)
committerSteve French <sfrench@us.ibm.com>
Tue, 2 Nov 2010 18:40:54 +0000 (18:40 +0000)
commite66673e39ac9d4749bd9676dd1caf928095409f5
treef16191d689910a4f939992d8836e575195633116
parentce2f6fb8bd8c1e85f288033020dfc31c9fc2be94
CIFS: Add cifs_set_oplock_level

Simplify many places when we need to set oplock level on an inode.

Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsproto.h
fs/cifs/file.c
fs/cifs/misc.c