/* * linux/include/linux/nfs_fs.h * * Copyright (C) 1992 Rick Sladkey * * OS-specific nfs filesystem definitions and declarations */ #ifndef _LINUX_NFS_FS_H #define _LINUX_NFS_FS_H #include #include #include #include #include #include #include #include #include #include #include /* * Enable debugging support for nfs client. * Requires RPC_DEBUG. */ #ifdef RPC_DEBUG # define NFS_DEBUG #endif #define NFS_MAX_FILE_IO_BUFFER_SIZE 32768 #define NFS_DEF_FILE_IO_BUFFER_SIZE 4096 /* * The upper limit on timeouts for the exponential backoff algorithm. */ #define NFS_WRITEBACK_DELAY (5*HZ) #define NFS_WRITEBACK_LOCKDELAY (60*HZ) #define NFS_COMMIT_DELAY (5*HZ) /* * superblock magic number for NFS */ #define NFS_SUPER_MAGIC 0x6969 /* * These are the default flags for swap requests */ #define NFS_RPC_SWAPFLAGS (RPC_TASK_SWAPPER|RPC_TASK_ROOTCREDS) #define NFS_RW_SYNC 0x0001 /* O_SYNC handling */ #define NFS_RW_SWAP 0x0002 /* This is a swap request */ /* * When flushing a cluster of dirty pages, there can be different * strategies: */ #define FLUSH_AGING 0 /* only flush old buffers */ #define FLUSH_SYNC 1 /* file being synced, or contention */ #define FLUSH_WAIT 2 /* wait for completion */ #define FLUSH_STABLE 4 /* commit to stable storage */ #define FLUSH_LOWPRI 8 /* low priority background flush */ #define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */ /* * NFS debug flags */ #define NFSDBG_VFS 0x0001 #define NFSDBG_DIRCACHE 0x0002 #define NFSDBG_LOOKUPCACHE 0x0004 #define NFSDBG_PAGECACHE 0x0008 #define NFSDBG_PROC 0x0010 #define NFSDBG_XDR 0x0020 #define NFSDBG_FILE 0x0040 #define NFSDBG_ROOT 0x0080 #define NFSDBG_CALLBACK 0x0100 #define NFSDBG_ALL 0xFFFF #endif