From: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx> The expectation since Linux 4.13 has been that EIO errors are always reported in fsync(), whether or not they were detected and reported earlier. On the other hand, ENOSPC errors are reported as soon as detected, and should only be reported once. -- v3: minor correctness fixes Trond Myklebust (5): NFS: Do not report EINTR/ERESTARTSYS as mapping errors NFS: fsync() should report filesystem errors over EINTR/ERESTARTSYS NFS: Don't report ENOSPC write errors twice NFS: Do not report flush errors in nfs_write_end() NFS: Don't report errors from nfs_pageio_complete() more than once fs/nfs/file.c | 50 +++++++++++++++++++++----------------------------- fs/nfs/write.c | 11 ++--------- 2 files changed, 23 insertions(+), 38 deletions(-) -- 2.36.1