fuse: fsync() did not return IO errors
authorAlexey Kuznetsov <kuznet@parallels.com>
Tue, 19 Jul 2016 19:48:01 +0000 (12:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2016 07:33:19 +0000 (09:33 +0200)
commit2bfc37232d0660891791409732b65b0044fe10f8
treeb3c16cc5ea3510d8a88acead9a6217d65e79f884
parent75b523695f0fba607a4c100ecde2ff96c086b3fb
fuse: fsync() did not return IO errors

commit ac7f052b9e1534c8248f814b6f0068ad8d4a06d2 upstream.

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")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/file.c