linux-old/fs/xfs/xfs_macros.h
<<
>>
Prefs
   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/*
  36 * Set for debug kernels and simulation
  37 * These replacements save space.
  38 * Used in xfs_macros.c.
  39 */
  40#define XFS_WANT_SPACE_C        \
  41        (!defined(_STANDALONE) && defined(DEBUG))
  42
  43/*
  44 * Set for debug simulation and kernel builds, but not for standalone.
  45 * These replacements do not save space.
  46 * Used in xfs_macros.c.
  47 */
  48#define XFS_WANT_FUNCS_C        \
  49        (!defined(_STANDALONE) && defined(DEBUG))
  50
  51/*
  52 * Corresponding names used in .h files.
  53 */
  54#define XFS_WANT_SPACE  (XFS_WANT_SPACE_C && !defined(XFS_MACRO_C))
  55#define XFS_WANT_FUNCS  (XFS_WANT_FUNCS_C && !defined(XFS_MACRO_C))
  56
  57/*
  58 * These are the macros that get turned into functions to save space.
  59 */
  60#define XFSSO_NULLSTARTBLOCK 1
  61#define XFSSO_XFS_AGB_TO_DADDR 1
  62#define XFSSO_XFS_AGB_TO_FSB 1
  63#define XFSSO_XFS_AGINO_TO_INO 1
  64#define XFSSO_XFS_ALLOC_BLOCK_MINRECS 1
  65#define XFSSO_XFS_ATTR_SF_NEXTENTRY 1
  66#define XFSSO_XFS_BMAP_BLOCK_DMAXRECS 1
  67#define XFSSO_XFS_BMAP_BLOCK_IMAXRECS 1
  68#define XFSSO_XFS_BMAP_BLOCK_IMINRECS 1
  69#define XFSSO_XFS_BMAP_INIT 1
  70#define XFSSO_XFS_BMAP_PTR_IADDR 1
  71#define XFSSO_XFS_BMAP_SANITY_CHECK 1
  72#define XFSSO_XFS_BMAPI_AFLAG 1
  73#define XFSSO_XFS_CFORK_SIZE 1
  74#define XFSSO_XFS_DA_COOKIE_BNO 1
  75#define XFSSO_XFS_DA_COOKIE_ENTRY 1
  76#define XFSSO_XFS_DADDR_TO_AGBNO 1
  77#define XFSSO_XFS_DADDR_TO_FSB 1
  78#define XFSSO_XFS_DFORK_PTR 1
  79#define XFSSO_XFS_DIR_SF_GET_DIRINO 1
  80#define XFSSO_XFS_DIR_SF_NEXTENTRY 1
  81#define XFSSO_XFS_DIR_SF_PUT_DIRINO 1
  82#define XFSSO_XFS_FILBLKS_MIN 1
  83#define XFSSO_XFS_FSB_SANITY_CHECK 1
  84#define XFSSO_XFS_FSB_TO_DADDR 1
  85#define XFSSO_XFS_FSB_TO_DB 1
  86#define XFSSO_XFS_IALLOC_INODES 1
  87#define XFSSO_XFS_IFORK_ASIZE 1
  88#define XFSSO_XFS_IFORK_DSIZE 1
  89#define XFSSO_XFS_IFORK_FORMAT 1
  90#define XFSSO_XFS_IFORK_NEXT_SET 1
  91#define XFSSO_XFS_IFORK_NEXTENTS 1
  92#define XFSSO_XFS_IFORK_PTR 1
  93#define XFSSO_XFS_ILOG_FBROOT 1
  94#define XFSSO_XFS_ILOG_FEXT 1
  95#define XFSSO_XFS_INO_MASK 1
  96#define XFSSO_XFS_INO_TO_FSB 1
  97#define XFSSO_XFS_INODE_CLEAR_READ_AHEAD 1
  98#define XFSSO_XFS_MIN_FREELIST 1
  99#define XFSSO_XFS_SB_GOOD_VERSION 1
 100#define XFSSO_XFS_SB_VERSION_HASNLINK 1
 101#define XFSSO_XLOG_GRANT_ADD_SPACE 1
 102#define XFSSO_XLOG_GRANT_SUB_SPACE 1
 103
 104#endif  /* __XFS_MACROS_H__ */
 105
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.