aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 39b43e6a7509..b24006c47df1 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -3,6 +3,7 @@
3 * 3 *
4 * Copyright (C) International Business Machines Corp., 2002,2006 4 * Copyright (C) International Business Machines Corp., 2002,2006
5 * Author(s): Steve French (sfrench@us.ibm.com) 5 * Author(s): Steve French (sfrench@us.ibm.com)
6 * Jeremy Allison (jra@samba.org)
6 * 7 *
7 * This library is free software; you can redistribute it and/or modify 8 * This library is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published 9 * it under the terms of the GNU Lesser General Public License as published
@@ -267,14 +268,14 @@ struct cifsTconInfo {
267}; 268};
268 269
269/* 270/*
270 * This info hangs off the cifsFileInfo structure. This is used to track 271 * This info hangs off the cifsFileInfo structure, pointed to by llist.
271 * byte stream locks on the file 272 * This is used to track byte stream locks on the file
272 */ 273 */
273struct cifsLockInfo { 274struct cifsLockInfo {
274 struct cifsLockInfo *next; 275 struct list_head llist; /* pointer to next cifsLockInfo */
275 int start; 276 __u64 offset;
276 int length; 277 __u64 length;
277 int type; 278 __u8 type;
278}; 279};
279 280
280/* 281/*
@@ -305,6 +306,8 @@ struct cifsFileInfo {
305 /* lock scope id (0 if none) */ 306 /* lock scope id (0 if none) */
306 struct file * pfile; /* needed for writepage */ 307 struct file * pfile; /* needed for writepage */
307 struct inode * pInode; /* needed for oplock break */ 308 struct inode * pInode; /* needed for oplock break */
309 struct semaphore lock_sem;
310 struct list_head llist; /* list of byte range locks we have. */
308 unsigned closePend:1; /* file is marked to close */ 311 unsigned closePend:1; /* file is marked to close */
309 unsigned invalidHandle:1; /* file closed via session abend */ 312 unsigned invalidHandle:1; /* file closed via session abend */
310 atomic_t wrtPending; /* handle in use - defer close */ 313 atomic_t wrtPending; /* handle in use - defer close */