1 /*
2  * include/linux/nfsd/const.h
3  *
4  * Various constants related to NFS.
5  *
6  * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de>
7  */
8 
9 #ifndef _LINUX_NFSD_CONST_H
10 #define _LINUX_NFSD_CONST_H
11 
12 #include <linux/nfs.h>
13 #include <linux/nfs2.h>
14 #include <linux/nfs3.h>
15 #include <asm/page.h>
16 
17 /*
18  * Maximum protocol version supported by knfsd
19  */
20 #define NFSSVC_MAXVERS		3
21 
22 /*
23  * Maximum blocksize supported by daemon.  We want the largest
24  * value which 1) fits in a UDP datagram less some headers
25  * 2) is a multiple of page size 3) can be successfully kmalloc()ed
26  * by each nfsd.
27  */
28 #if PAGE_SIZE > (16*1024)
29 #define NFSSVC_MAXBLKSIZE	(32*1024)
30 #else
31 #define NFSSVC_MAXBLKSIZE	(2*PAGE_SIZE)
32 #endif
33 
34 #ifdef __KERNEL__
35 
36 #ifndef NFS_SUPER_MAGIC
37 # define NFS_SUPER_MAGIC	0x6969
38 #endif
39 
40 #endif /* __KERNEL__ */
41 
42 #endif /* _LINUX_NFSD_CONST_H */
43