fuse: don't ignore errors from fuse_writepages_fill()
authorVasily Averin <vvs@virtuozzo.com>
Thu, 25 Jun 2020 09:39:51 +0000 (12:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:10 +0000 (09:34 +0200)
commit5e870c75e1536acc25edaaeebe7995670417bfff
tree5ec221b0984a0908c4dcfd61a1b45eb5c8b7dc52
parentf247ab500974a21061058a115b315cee7969d05d
fuse: don't ignore errors from fuse_writepages_fill()

[ Upstream commit 7779b047a57f6824a43d0e1f70de2741b7426b9d ]

fuse_writepages() ignores some errors taken from fuse_writepages_fill() I
believe it is a bug: if .writepages is called with WB_SYNC_ALL it should
either guarantee that all data was successfully saved or return error.

Fixes: 26d614df1da9 ("fuse: Implement writepages callback")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fuse/file.c