summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfs.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-04-30 12:44:20 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-04-30 12:44:20 +0000
commitde0424ce2628044461b3970c30ea52cd23d4a937 (patch)
treef41eba473f204c65db3fdb1264d7d97013acb15f /sys/fs/nfs/nfs.h
parentfba63dddeb47d7daf52036b191fc27d0b34cb02b (diff)
downloadFreeBSD-src-de0424ce2628044461b3970c30ea52cd23d4a937.zip
FreeBSD-src-de0424ce2628044461b3970c30ea52cd23d4a937.tar.gz
MFC: r281628
mav@ has found that NFS servers exporting ZFS file systems can perform better when using a 128K read/write data size. This patch changes NFS_MAXDATA from 64K to 128K so that clients can use 128K for NFS mounts to allow this. The patch also renames NFS_MAXDATA to NFS_SRVMAXIO so that it is clear that it applies to the NFS server side only. It also avoids a name conflict with the NFS_MAXDATA defined in rpcsvc/nfs_prot.h, that is used for userland RPC.
Diffstat (limited to 'sys/fs/nfs/nfs.h')
-rw-r--r--sys/fs/nfs/nfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfs.h b/sys/fs/nfs/nfs.h
index 6106de9..2ee9145 100644
--- a/sys/fs/nfs/nfs.h
+++ b/sys/fs/nfs/nfs.h
@@ -159,7 +159,7 @@
(t).tv_sec = time.tv_sec; (t).tv_nsec = 1000 * time.tv_usec; } while (0)
#define NFS_SRVMAXDATA(n) \
(((n)->nd_flag & (ND_NFSV3 | ND_NFSV4)) ? \
- NFS_MAXDATA : NFS_V2MAXDATA)
+ NFS_SRVMAXIO : NFS_V2MAXDATA)
#define NFS64BITSSET 0xffffffffffffffffull
#define NFS64BITSMINUS1 0xfffffffffffffffeull
OpenPOWER on IntegriCloud