diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-05-26 02:01:59 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-26 14:07:02 -0400 |
commit | fa2989f4473413a86890066aa3a5676a53b541e4 (patch) | |
tree | a033c59307ba77ae0819e818aec7d68178d11d4d /fs/cifs/cifsglob.h | |
parent | c28c89fc43e3f81436efc4748837534d4d46f90c (diff) |
CIFS: Use pid saved from cifsFileInfo in writepages and set_file_size
We need it to make them work with mandatory locking style because
we can fail in a situation like when kernel need to flush dirty pages
and there is a lock held by a process who opened file.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index fd877c110e4c..30699d9378e9 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -455,6 +455,14 @@ struct cifsFileInfo { | |||
455 | struct work_struct oplock_break; /* work for oplock breaks */ | 455 | struct work_struct oplock_break; /* work for oplock breaks */ |
456 | }; | 456 | }; |
457 | 457 | ||
458 | struct cifs_io_parms { | ||
459 | __u16 netfid; | ||
460 | __u32 pid; | ||
461 | __u64 offset; | ||
462 | unsigned int length; | ||
463 | struct cifsTconInfo *tcon; | ||
464 | }; | ||
465 | |||
458 | /* | 466 | /* |
459 | * Take a reference on the file private data. Must be called with | 467 | * Take a reference on the file private data. Must be called with |
460 | * cifs_file_list_lock held. | 468 | * cifs_file_list_lock held. |