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 _UAPI_LINUX_NFS_FS_H 10#define _UAPI_LINUX_NFS_FS_H 11 12#include <linux/magic.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 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 40/* 41 * NFS debug flags 42 */ 43#define NFSDBG_VFS 0x0001 44#define NFSDBG_DIRCACHE 0x0002 45#define NFSDBG_LOOKUPCACHE 0x0004 46#define NFSDBG_PAGECACHE 0x0008 47#define NFSDBG_PROC 0x0010 48#define NFSDBG_XDR 0x0020 49#define NFSDBG_FILE 0x0040 50#define NFSDBG_ROOT 0x0080 51#define NFSDBG_CALLBACK 0x0100 52#define NFSDBG_CLIENT 0x0200 53#define NFSDBG_MOUNT 0x0400 54#define NFSDBG_FSCACHE 0x0800 55#define NFSDBG_PNFS 0x1000 56#define NFSDBG_PNFS_LD 0x2000 57#define NFSDBG_STATE 0x4000 58#define NFSDBG_ALL 0xFFFF 59 60 61#endif /* _UAPI_LINUX_NFS_FS_H */ 62