aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h54
1 files changed, 1 insertions, 53 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 334a2f5f6bf1..1cc25682b20b 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -5,38 +5,11 @@
5 * 5 *
6 * OS-specific nfs filesystem definitions and declarations 6 * OS-specific nfs filesystem definitions and declarations
7 */ 7 */
8
9#ifndef _LINUX_NFS_FS_H 8#ifndef _LINUX_NFS_FS_H
10#define _LINUX_NFS_FS_H 9#define _LINUX_NFS_FS_H
11 10
12#include <linux/magic.h> 11#include <uapi/linux/nfs_fs.h>
13
14/* Default timeout values */
15#define NFS_DEF_UDP_TIMEO (11)
16#define NFS_DEF_UDP_RETRANS (3)
17#define NFS_DEF_TCP_TIMEO (600)
18#define NFS_DEF_TCP_RETRANS (2)
19
20#define NFS_MAX_UDP_TIMEOUT (60*HZ)
21#define NFS_MAX_TCP_TIMEOUT (600*HZ)
22 12
23#define NFS_DEF_ACREGMIN (3)
24#define NFS_DEF_ACREGMAX (60)
25#define NFS_DEF_ACDIRMIN (30)
26#define NFS_DEF_ACDIRMAX (60)
27
28/*
29 * When flushing a cluster of dirty pages, there can be different
30 * strategies:
31 */
32#define FLUSH_SYNC 1 /* file being synced, or contention */
33#define FLUSH_STABLE 4 /* commit to stable storage */
34#define FLUSH_LOWPRI 8 /* low priority background flush */
35#define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */
36#define FLUSH_COND_STABLE 32 /* conditional stable write - only stable
37 * if everything fits in one RPC */
38
39#ifdef __KERNEL__
40 13
41/* 14/*
42 * Enable dprintk() debugging support for nfs client. 15 * Enable dprintk() debugging support for nfs client.
@@ -613,29 +586,6 @@ nfs_fileid_to_ino_t(u64 fileid)
613 586
614#define NFS_JUKEBOX_RETRY_TIME (5 * HZ) 587#define NFS_JUKEBOX_RETRY_TIME (5 * HZ)
615 588
616#endif /* __KERNEL__ */
617
618/*
619 * NFS debug flags
620 */
621#define NFSDBG_VFS 0x0001
622#define NFSDBG_DIRCACHE 0x0002
623#define NFSDBG_LOOKUPCACHE 0x0004
624#define NFSDBG_PAGECACHE 0x0008
625#define NFSDBG_PROC 0x0010
626#define NFSDBG_XDR 0x0020
627#define NFSDBG_FILE 0x0040
628#define NFSDBG_ROOT 0x0080
629#define NFSDBG_CALLBACK 0x0100
630#define NFSDBG_CLIENT 0x0200
631#define NFSDBG_MOUNT 0x0400
632#define NFSDBG_FSCACHE 0x0800
633#define NFSDBG_PNFS 0x1000
634#define NFSDBG_PNFS_LD 0x2000
635#define NFSDBG_STATE 0x4000
636#define NFSDBG_ALL 0xFFFF
637
638#ifdef __KERNEL__
639 589
640# undef ifdebug 590# undef ifdebug
641# ifdef NFS_DEBUG 591# ifdef NFS_DEBUG
@@ -645,6 +595,4 @@ nfs_fileid_to_ino_t(u64 fileid)
645# define ifdebug(fac) if (0) 595# define ifdebug(fac) if (0)
646# define NFS_IFDEBUG(x) 596# define NFS_IFDEBUG(x)
647# endif 597# endif
648#endif /* __KERNEL */
649
650#endif 598#endif