]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: fsync() did not return IO errors
authorAlexey Kuznetsov <kuznet@parallels.com>
Tue, 19 Jul 2016 19:48:01 +0000 (12:48 -0700)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 22 Aug 2016 16:23:22 +0000 (12:23 -0400)
commit689c2a8941d452a3054868afa03497b64853e29b
tree977b6abce8a69f0f13a26614e34452f99a39f17e
parent77c6ffdbce68688492a31702f67c7dbc4eeedd62
fuse: fsync() did not return IO errors

[ Upstream commit ac7f052b9e1534c8248f814b6f0068ad8d4a06d2 ]

Due to implementation of fuse writeback filemap_write_and_wait_range() does
not catch errors. We have to do this directly after fuse_sync_writes()

Signed-off-by: Alexey Kuznetsov <kuznet@virtuozzo.com>
Signed-off-by: Maxim Patlasov <mpatlasov@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 4d99ff8f12eb ("fuse: Turn writeback cache on")
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
fs/fuse/file.c