CIFS: Fix error paths in writeback code
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 8 Jan 2019 19:15:28 +0000 (11:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:09 +0000 (08:22 +0200)
commitfb2dabeabb175afcebc37561c8992732278fa8c0
treebc32d09f14718a48ab272d5e84d764ff4344ddd3
parente407b58c357604c1d973a0f99ec5ec573fb7b11d
CIFS: Fix error paths in writeback code

[ Upstream commit 9a66396f1857cc1de06f4f4771797315e1a4ea56 ]

This patch aims to address writeback code problems related to error
paths. In particular it respects EINTR and related error codes and
stores and returns the first error occurred during writeback.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/file.c
fs/cifs/inode.c