CIFS: Move open file handling to writepages
authorPavel Shilovsky <pshilov@microsoft.com>
Mon, 28 Jan 2019 20:09:02 +0000 (12:09 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:10:04 +0000 (18:10 -0600)
commitc4b8f657d55b4ed60cb0a2187e940706de23f2b2
treeaa25689ce087de0e4241b064ebf5dbe0d555ec51
parent258f0603beb869ba5f6a05713a1508d991baae43
CIFS: Move open file handling to writepages

Currently we check for an open file existence in wdata_send_pages()
which doesn't provide an easy way to handle error codes that will
be returned from find_writable_filehandle() once it is changed.
Move the check to writepages.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c