Home | History | Annotate | Download | only in linux
      1 /*
      2  *  linux/include/linux/nfs_fs.h
      3  *
      4  *  Copyright (C) 1992  Rick Sladkey
      5  *
      6  *  OS-specific nfs filesystem definitions and declarations
      7  */
      8 
      9 #ifndef _LINUX_NFS_FS_H
     10 #define _LINUX_NFS_FS_H
     11 
     12 #include <linux/magic.h>
     13 
     14 /* Default timeout values */
     15 #define NFS_MAX_UDP_TIMEOUT	(60*HZ)
     16 #define NFS_MAX_TCP_TIMEOUT	(600*HZ)
     17 
     18 /*
     19  * When flushing a cluster of dirty pages, there can be different
     20  * strategies:
     21  */
     22 #define FLUSH_SYNC		1	/* file being synced, or contention */
     23 #define FLUSH_STABLE		4	/* commit to stable storage */
     24 #define FLUSH_LOWPRI		8	/* low priority background flush */
     25 #define FLUSH_HIGHPRI		16	/* high priority memory reclaim flush */
     26 #define FLUSH_NOCOMMIT		32	/* Don't send the NFSv3/v4 COMMIT */
     27 #define FLUSH_INVALIDATE	64	/* Invalidate the page cache */
     28 #define FLUSH_NOWRITEPAGE	128	/* Don't call writepage() */
     29 
     30 
     31 /*
     32  * NFS debug flags
     33  */
     34 #define NFSDBG_VFS		0x0001
     35 #define NFSDBG_DIRCACHE		0x0002
     36 #define NFSDBG_LOOKUPCACHE	0x0004
     37 #define NFSDBG_PAGECACHE	0x0008
     38 #define NFSDBG_PROC		0x0010
     39 #define NFSDBG_XDR		0x0020
     40 #define NFSDBG_FILE		0x0040
     41 #define NFSDBG_ROOT		0x0080
     42 #define NFSDBG_CALLBACK		0x0100
     43 #define NFSDBG_CLIENT		0x0200
     44 #define NFSDBG_MOUNT		0x0400
     45 #define NFSDBG_ALL		0xFFFF
     46 
     47 
     48 #endif
     49