fuse: fsync() did not return IO errors
authorAlexey Kuznetsov <kuznet@parallels.com>
Tue, 19 Jul 2016 19:48:01 +0000 (12:48 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 29 Jul 2016 12:10:57 +0000 (14:10 +0200)
commitac7f052b9e1534c8248f814b6f0068ad8d4a06d2
treea20abcc011644c469ad2c5f4b9a8cdac884984d8
parent0f7d93416d97f3a943d6add836ec0d681ae030f5
fuse: fsync() did not return IO errors

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+
fs/fuse/file.c