aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2011-09-22 01:53:59 -0400
committerSteve French <smfrench@gmail.com>2011-10-13 20:52:47 -0400
commitd59dad2be038132259ac99a2837d65a87fd90588 (patch)
treeba31d82b208981c6779a071217ff762cd3a1777e /fs/cifs/cifsfs.c
parentfe11e4ccb8479d92cd2a101d380d332544b84aaa (diff)
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.c3
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)
945 struct cifsInodeInfo *cifsi = inode; 945 struct cifsInodeInfo *cifsi = inode;
946 946
947 inode_init_once(&cifsi->vfs_inode); 947 inode_init_once(&cifsi->vfs_inode);
948 INIT_LIST_HEAD(&cifsi->lockList); 948 INIT_LIST_HEAD(&cifsi->llist);
949 mutex_init(&cifsi->lock_mutex);
949} 950}
950 951
951static int 952static int