diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2010-11-02 09:00:42 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-11-02 18:40:54 (GMT) |
commit | e66673e39ac9d4749bd9676dd1caf928095409f5 (patch) | |
tree | f16191d689910a4f939992d8836e575195633116 /fs/cifs/cifsproto.h | |
parent | ce2f6fb8bd8c1e85f288033020dfc31c9fc2be94 (diff) | |
download | linux-fsl-qoriq-e66673e39ac9d4749bd9676dd1caf928095409f5.tar.xz |
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>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index edb6d90..7f050f4 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -104,6 +104,7 @@ extern struct timespec cifs_NTtimeToUnix(__le64 utc_nanoseconds_since_1601); extern u64 cifs_UnixTimeToNT(struct timespec); extern struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset); +extern void cifs_set_oplock_level(struct inode *inode, __u32 oplock); extern struct cifsFileInfo *cifs_new_fileinfo(__u16 fileHandle, struct file *file, struct tcon_link *tlink, |