From: Trond Myklebust Date: Wed, 26 Apr 2017 16:21:49 +0000 (-0400) Subject: NFS: Add a few more fatal I/O errors to nfs_error_is_fatal() X-Git-Tag: v4.14-rc1~928^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54551d85ad48b5b5f5735b9b76c147096828b626;p=platform%2Fkernel%2Flinux-rpi.git NFS: Add a few more fatal I/O errors to nfs_error_is_fatal() EACCES, EDQUOT, EFBIG and ESTALE are all fatal errors as far as NFS I/O is concerned. They need to be reported back to the application. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 7b38fed..31b26cf 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -756,9 +756,13 @@ static inline bool nfs_error_is_fatal(int err) { switch (err) { case -ERESTARTSYS: + case -EACCES: + case -EDQUOT: + case -EFBIG: case -EIO: case -ENOSPC: case -EROFS: + case -ESTALE: case -E2BIG: return true; default: