xfs_macros.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of version 2 of the GNU General Public License as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it would be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. *
  12. * Further, this software is distributed without any warranty that it is
  13. * free of the rightful claim of any third person regarding infringement
  14. * or the like. Any license provided herein, whether implied or
  15. * otherwise, applies only to this software file. Patent licenses, if
  16. * any, provided herein do not apply to combinations of this program with
  17. * other software, or any other product whatsoever.
  18. *
  19. * You should have received a copy of the GNU General Public License along
  20. * with this program; if not, write the Free Software Foundation, Inc., 59
  21. * Temple Place - Suite 330, Boston MA 02111-1307, USA.
  22. *
  23. * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
  24. * Mountain View, CA 94043, or:
  25. *
  26. * http://www.sgi.com
  27. *
  28. * For further information regarding this notice, see:
  29. *
  30. * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  31. */
  32. #ifndef __XFS_MACROS_H__
  33. #define __XFS_MACROS_H__
  34. /*
  35. * Set for debug kernels and simulation
  36. * These replacements save space.
  37. * Used in xfs_macros.c.
  38. */
  39. #define XFS_WANT_SPACE_C \
  40. (!defined(_STANDALONE) && defined(DEBUG))
  41. /*
  42. * Set for debug simulation and kernel builds, but not for standalone.
  43. * These replacements do not save space.
  44. * Used in xfs_macros.c.
  45. */
  46. #define XFS_WANT_FUNCS_C \
  47. (!defined(_STANDALONE) && defined(DEBUG))
  48. /*
  49. * Corresponding names used in .h files.
  50. */
  51. #define XFS_WANT_SPACE (XFS_WANT_SPACE_C && !defined(XFS_MACRO_C))
  52. #define XFS_WANT_FUNCS (XFS_WANT_FUNCS_C && !defined(XFS_MACRO_C))
  53. /*
  54. * These are the macros that get turned into functions to save space.
  55. */
  56. #define XFSSO_NULLSTARTBLOCK 1
  57. #define XFSSO_XFS_AGB_TO_DADDR 1
  58. #define XFSSO_XFS_AGB_TO_FSB 1
  59. #define XFSSO_XFS_AGINO_TO_INO 1
  60. #define XFSSO_XFS_ALLOC_BLOCK_MINRECS 1
  61. #define XFSSO_XFS_ATTR_SF_NEXTENTRY 1
  62. #define XFSSO_XFS_BMAP_BLOCK_DMAXRECS 1
  63. #define XFSSO_XFS_BMAP_BLOCK_IMAXRECS 1
  64. #define XFSSO_XFS_BMAP_BLOCK_IMINRECS 1
  65. #define XFSSO_XFS_BMAP_INIT 1
  66. #define XFSSO_XFS_BMAP_PTR_IADDR 1
  67. #define XFSSO_XFS_BMAP_SANITY_CHECK 1
  68. #define XFSSO_XFS_BMAPI_AFLAG 1
  69. #define XFSSO_XFS_CFORK_SIZE 1
  70. #define XFSSO_XFS_DA_COOKIE_BNO 1
  71. #define XFSSO_XFS_DA_COOKIE_ENTRY 1
  72. #define XFSSO_XFS_DADDR_TO_AGBNO 1
  73. #define XFSSO_XFS_DADDR_TO_FSB 1
  74. #define XFSSO_XFS_DFORK_PTR 1
  75. #define XFSSO_XFS_DIR_SF_GET_DIRINO 1
  76. #define XFSSO_XFS_DIR_SF_NEXTENTRY 1
  77. #define XFSSO_XFS_DIR_SF_PUT_DIRINO 1
  78. #define XFSSO_XFS_FILBLKS_MIN 1
  79. #define XFSSO_XFS_FSB_SANITY_CHECK 1
  80. #define XFSSO_XFS_FSB_TO_DADDR 1
  81. #define XFSSO_XFS_FSB_TO_DB 1
  82. #define XFSSO_XFS_IALLOC_INODES 1
  83. #define XFSSO_XFS_IFORK_ASIZE 1
  84. #define XFSSO_XFS_IFORK_DSIZE 1
  85. #define XFSSO_XFS_IFORK_FORMAT 1
  86. #define XFSSO_XFS_IFORK_NEXT_SET 1
  87. #define XFSSO_XFS_IFORK_NEXTENTS 1
  88. #define XFSSO_XFS_IFORK_PTR 1
  89. #define XFSSO_XFS_ILOG_FBROOT 1
  90. #define XFSSO_XFS_ILOG_FEXT 1
  91. #define XFSSO_XFS_INO_MASK 1
  92. #define XFSSO_XFS_INO_TO_FSB 1
  93. #define XFSSO_XFS_INODE_CLEAR_READ_AHEAD 1
  94. #define XFSSO_XFS_MIN_FREELIST 1
  95. #define XFSSO_XFS_SB_GOOD_VERSION 1
  96. #define XFSSO_XFS_SB_VERSION_HASNLINK 1
  97. #define XFSSO_XLOG_GRANT_ADD_SPACE 1
  98. #define XFSSO_XLOG_GRANT_SUB_SPACE 1
  99. #endif /* __XFS_MACROS_H__ */