diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-10-22 07:33:31 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-10-24 14:11:52 -0400 |
commit | 9ee305b70e09f5132c9723780ce10e69710b8bca (patch) | |
tree | d739e9ba99cc523235404b7f5e38828ea6ed9536 /fs/cifs/cifsproto.h | |
parent | 4f6bcec910d45e4f46b1514977caa529bc69e645 (diff) |
CIFS: Send as many mandatory unlock ranges at once as possible
that reduces a traffic and increases a performance.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 67c26cfe160d..ef4f631e4c01 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -368,6 +368,9 @@ extern int CIFSGetSrvInodeNumber(const int xid, struct cifs_tcon *tcon, | |||
368 | const struct nls_table *nls_codepage, | 368 | const struct nls_table *nls_codepage, |
369 | int remap_special_chars); | 369 | int remap_special_chars); |
370 | 370 | ||
371 | extern int cifs_lockv(const int xid, struct cifs_tcon *tcon, const __u16 netfid, | ||
372 | const __u8 lock_type, const __u32 num_unlock, | ||
373 | const __u32 num_lock, LOCKING_ANDX_RANGE *buf); | ||
371 | extern int CIFSSMBLock(const int xid, struct cifs_tcon *tcon, | 374 | extern int CIFSSMBLock(const int xid, struct cifs_tcon *tcon, |
372 | const __u16 netfid, const __u32 netpid, const __u64 len, | 375 | const __u16 netfid, const __u32 netpid, const __u64 len, |
373 | const __u64 offset, const __u32 numUnlock, | 376 | const __u64 offset, const __u32 numUnlock, |