diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-09-22 09:53:59 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-10-13 19:52:47 -0500 |
commit | d59dad2be038132259ac99a2837d65a87fd90588 (patch) | |
tree | ba31d82b208981c6779a071217ff762cd3a1777e /fs/cifs/cifsfs.c | |
parent | fe11e4ccb8479d92cd2a101d380d332544b84aaa (diff) | |
download | linux-d59dad2be038132259ac99a2837d65a87fd90588.tar.bz2 |
CIFS: Move byte range lock list from fd to inode
that let us do local lock checks before requesting to the server.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 5c2972106816..b0a2e1647390 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -945,7 +945,8 @@ cifs_init_once(void *inode) struct cifsInodeInfo *cifsi = inode; inode_init_once(&cifsi->vfs_inode); - INIT_LIST_HEAD(&cifsi->lockList); + INIT_LIST_HEAD(&cifsi->llist); + mutex_init(&cifsi->lock_mutex); } static int |