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/cifsproto.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/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 8aea8850ffee..eb3b58d9668f 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -348,15 +348,12 @@ extern int CIFSSMBRead(const int xid, struct cifsTconInfo *tcon, | |||
348 | const int netfid, unsigned int count, | 348 | const int netfid, unsigned int count, |
349 | const __u64 lseek, unsigned int *nbytes, char **buf, | 349 | const __u64 lseek, unsigned int *nbytes, char **buf, |
350 | int *return_buf_type); | 350 | int *return_buf_type); |
351 | extern int CIFSSMBWrite(const int xid, struct cifsTconInfo *tcon, | 351 | extern int CIFSSMBWrite(const int xid, struct cifs_io_parms *io_parms, |
352 | const int netfid, const unsigned int count, | 352 | unsigned int *nbytes, const char *buf, |
353 | const __u64 lseek, unsigned int *nbytes, | 353 | const char __user *ubuf, const int long_op); |
354 | const char *buf, const char __user *ubuf, | 354 | extern int CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, |
355 | unsigned int *nbytes, struct kvec *iov, const int nvec, | ||
355 | const int long_op); | 356 | const int long_op); |
356 | extern int CIFSSMBWrite2(const int xid, struct cifsTconInfo *tcon, | ||
357 | const int netfid, const unsigned int count, | ||
358 | const __u64 offset, unsigned int *nbytes, | ||
359 | struct kvec *iov, const int nvec, const int long_op); | ||
360 | extern int CIFSGetSrvInodeNumber(const int xid, struct cifsTconInfo *tcon, | 357 | extern int CIFSGetSrvInodeNumber(const int xid, struct cifsTconInfo *tcon, |
361 | const unsigned char *searchName, __u64 *inode_number, | 358 | const unsigned char *searchName, __u64 *inode_number, |
362 | const struct nls_table *nls_codepage, | 359 | const struct nls_table *nls_codepage, |