CIFS: Move locks to cifsFileInfo structure
authorPavel Shilovsky <piastry@etersoft.ru>
Fri, 24 Feb 2012 12:41:06 +0000 (15:41 +0300)
committerSteve French <sfrench@us.ibm.com>
Thu, 17 May 2012 01:13:35 +0000 (20:13 -0500)
commitfbd35acadd728eac5d94f360c7cd8cbe12a0379f
tree3db901833cee1e177aae17cb35e5d57fa998a27a
parent121b046af54437b084aa0e4be967ae5aed7528b5
CIFS: Move locks to cifsFileInfo structure

CIFS brlock cache can be used by several file handles if we have a
write-caching lease on the file that is supported by SMB2 protocol.
Prepate the code to handle this situation correctly by sorting brlocks
by a fid to easily push them in portions when lease break comes.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/file.c