diff options
author | Pavel Shilovsky <pshilovsky@etersoft.ru> | 2012-09-19 09:22:43 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:33 -0400 |
commit | f7ba7fe685bc3ed8fd0687870e68b2567d17357f (patch) | |
tree | 364ff08cf616cc740467d44d5026a05ce9d0c33c /fs/cifs/smb2proto.h | |
parent | 027e8eec31d8141a6231f772e10ccae60c9d5c13 (diff) |
CIFS: Add brlock support for SMB2
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r-- | fs/cifs/smb2proto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h index aeb30dbdf8b8..ab19152b092b 100644 --- a/fs/cifs/smb2proto.h +++ b/fs/cifs/smb2proto.h | |||
@@ -84,6 +84,8 @@ extern int smb2_open_file(const unsigned int xid, struct cifs_tcon *tcon, | |||
84 | struct cifs_fid *fid, __u32 *oplock, | 84 | struct cifs_fid *fid, __u32 *oplock, |
85 | FILE_ALL_INFO *buf, struct cifs_sb_info *cifs_sb); | 85 | FILE_ALL_INFO *buf, struct cifs_sb_info *cifs_sb); |
86 | extern void smb2_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); | 86 | extern void smb2_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); |
87 | extern int smb2_unlock_range(struct cifsFileInfo *cfile, | ||
88 | struct file_lock *flock, const unsigned int xid); | ||
87 | 89 | ||
88 | /* | 90 | /* |
89 | * SMB2 Worker functions - most of protocol specific implementation details | 91 | * SMB2 Worker functions - most of protocol specific implementation details |
@@ -140,5 +142,13 @@ extern int SMB2_oplock_break(const unsigned int xid, struct cifs_tcon *tcon, | |||
140 | extern int SMB2_QFS_info(const unsigned int xid, struct cifs_tcon *tcon, | 142 | extern int SMB2_QFS_info(const unsigned int xid, struct cifs_tcon *tcon, |
141 | u64 persistent_file_id, u64 volatile_file_id, | 143 | u64 persistent_file_id, u64 volatile_file_id, |
142 | struct kstatfs *FSData); | 144 | struct kstatfs *FSData); |
145 | extern int SMB2_lock(const unsigned int xid, struct cifs_tcon *tcon, | ||
146 | const __u64 persist_fid, const __u64 volatile_fid, | ||
147 | const __u32 pid, const __u64 length, const __u64 offset, | ||
148 | const __u32 lockFlags, const bool wait); | ||
149 | extern int smb2_lockv(const unsigned int xid, struct cifs_tcon *tcon, | ||
150 | const __u64 persist_fid, const __u64 volatile_fid, | ||
151 | const __u32 pid, const __u32 num_lock, | ||
152 | struct smb2_lock_element *buf); | ||
143 | 153 | ||
144 | #endif /* _SMB2PROTO_H */ | 154 | #endif /* _SMB2PROTO_H */ |