CIFS: Use pid saved from cifsFileInfo in writepages and set_file_size
authorPavel Shilovsky <piastry@etersoft.ru>
Thu, 26 May 2011 06:01:59 +0000 (10:01 +0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 26 May 2011 18:07:02 +0000 (18:07 +0000)
commitfa2989f4473413a86890066aa3a5676a53b541e4
treea033c59307ba77ae0819e818aec7d68178d11d4d
parentc28c89fc43e3f81436efc4748837534d4d46f90c
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>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/inode.c
fs/cifs/link.c