Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  *  linux/include/linux/nfs_fs.h
0004  *
0005  *  Copyright (C) 1992  Rick Sladkey
0006  *
0007  *  OS-specific nfs filesystem definitions and declarations
0008  */
0009 
0010 #ifndef _UAPI_LINUX_NFS_FS_H
0011 #define _UAPI_LINUX_NFS_FS_H
0012 
0013 #include <linux/magic.h>
0014 
0015 /* Default timeout values */
0016 #define NFS_DEF_UDP_TIMEO   (11)
0017 #define NFS_DEF_UDP_RETRANS (3)
0018 #define NFS_DEF_TCP_TIMEO   (600)
0019 #define NFS_DEF_TCP_RETRANS (2)
0020 
0021 #define NFS_MAX_UDP_TIMEOUT (60*HZ)
0022 #define NFS_MAX_TCP_TIMEOUT (600*HZ)
0023 
0024 #define NFS_DEF_ACREGMIN    (3)
0025 #define NFS_DEF_ACREGMAX    (60)
0026 #define NFS_DEF_ACDIRMIN    (30)
0027 #define NFS_DEF_ACDIRMAX    (60)
0028 
0029 /*
0030  * When flushing a cluster of dirty pages, there can be different
0031  * strategies:
0032  */
0033 #define FLUSH_SYNC      1   /* file being synced, or contention */
0034 #define FLUSH_STABLE        4   /* commit to stable storage */
0035 #define FLUSH_LOWPRI        8   /* low priority background flush */
0036 #define FLUSH_HIGHPRI       16  /* high priority memory reclaim flush */
0037 #define FLUSH_COND_STABLE   32  /* conditional stable write - only stable
0038                      * if everything fits in one RPC */
0039 
0040 
0041 /*
0042  * NFS debug flags
0043  */
0044 #define NFSDBG_VFS      0x0001
0045 #define NFSDBG_DIRCACHE     0x0002
0046 #define NFSDBG_LOOKUPCACHE  0x0004
0047 #define NFSDBG_PAGECACHE    0x0008
0048 #define NFSDBG_PROC     0x0010
0049 #define NFSDBG_XDR      0x0020
0050 #define NFSDBG_FILE     0x0040
0051 #define NFSDBG_ROOT     0x0080
0052 #define NFSDBG_CALLBACK     0x0100
0053 #define NFSDBG_CLIENT       0x0200
0054 #define NFSDBG_MOUNT        0x0400
0055 #define NFSDBG_FSCACHE      0x0800 /* unused */
0056 #define NFSDBG_PNFS     0x1000
0057 #define NFSDBG_PNFS_LD      0x2000
0058 #define NFSDBG_STATE        0x4000
0059 #define NFSDBG_XATTRCACHE   0x8000
0060 #define NFSDBG_ALL      0xFFFF
0061 
0062 
0063 #endif /* _UAPI_LINUX_NFS_FS_H */