aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index b1e577302518..c7cf23ae6597 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -69,7 +69,8 @@ struct nfs_clone_mount {
69 * Maximum number of pages that readdir can use for creating 69 * Maximum number of pages that readdir can use for creating
70 * a vmapped array of pages. 70 * a vmapped array of pages.
71 */ 71 */
72#define NFS_MAX_READDIR_PAGES 8 72#define NFS_MAX_READDIR_PAGES 64
73#define NFS_MAX_READDIR_RAPAGES 8
73 74
74struct nfs_client_initdata { 75struct nfs_client_initdata {
75 unsigned long init_flags; 76 unsigned long init_flags;
@@ -755,6 +756,7 @@ static inline bool nfs_error_is_fatal(int err)
755{ 756{
756 switch (err) { 757 switch (err) {
757 case -ERESTARTSYS: 758 case -ERESTARTSYS:
759 case -EINTR:
758 case -EACCES: 760 case -EACCES:
759 case -EDQUOT: 761 case -EDQUOT:
760 case -EFBIG: 762 case -EFBIG:
@@ -763,6 +765,7 @@ static inline bool nfs_error_is_fatal(int err)
763 case -EROFS: 765 case -EROFS:
764 case -ESTALE: 766 case -ESTALE:
765 case -E2BIG: 767 case -E2BIG:
768 case -ENOMEM:
766 return true; 769 return true;
767 default: 770 default:
768 return false; 771 return false;