nfs_fs.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. #ifndef _UAPI_LINUX_NFS_FS_H
  9. #define _UAPI_LINUX_NFS_FS_H
  10. #include <linux/magic.h>
  11. /* Default timeout values */
  12. #define NFS_DEF_UDP_TIMEO (11)
  13. #define NFS_DEF_UDP_RETRANS (3)
  14. #define NFS_DEF_TCP_TIMEO (600)
  15. #define NFS_DEF_TCP_RETRANS (2)
  16. #define NFS_MAX_UDP_TIMEOUT (60*HZ)
  17. #define NFS_MAX_TCP_TIMEOUT (600*HZ)
  18. #define NFS_DEF_ACREGMIN (3)
  19. #define NFS_DEF_ACREGMAX (60)
  20. #define NFS_DEF_ACDIRMIN (30)
  21. #define NFS_DEF_ACDIRMAX (60)
  22. /*
  23. * When flushing a cluster of dirty pages, there can be different
  24. * strategies:
  25. */
  26. #define FLUSH_SYNC 1 /* file being synced, or contention */
  27. #define FLUSH_STABLE 4 /* commit to stable storage */
  28. #define FLUSH_LOWPRI 8 /* low priority background flush */
  29. #define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */
  30. #define FLUSH_COND_STABLE 32 /* conditional stable write - only stable
  31. * if everything fits in one RPC */
  32. /*
  33. * NFS debug flags
  34. */
  35. #define NFSDBG_VFS 0x0001
  36. #define NFSDBG_DIRCACHE 0x0002
  37. #define NFSDBG_LOOKUPCACHE 0x0004
  38. #define NFSDBG_PAGECACHE 0x0008
  39. #define NFSDBG_PROC 0x0010
  40. #define NFSDBG_XDR 0x0020
  41. #define NFSDBG_FILE 0x0040
  42. #define NFSDBG_ROOT 0x0080
  43. #define NFSDBG_CALLBACK 0x0100
  44. #define NFSDBG_CLIENT 0x0200
  45. #define NFSDBG_MOUNT 0x0400
  46. #define NFSDBG_FSCACHE 0x0800
  47. #define NFSDBG_PNFS 0x1000
  48. #define NFSDBG_PNFS_LD 0x2000
  49. #define NFSDBG_STATE 0x4000
  50. #define NFSDBG_ALL 0xFFFF
  51. #endif /* _UAPI_LINUX_NFS_FS_H */