File: [Development] / linux-2.6-xfs / fs / xfs / xfs.h (download)
Revision 1.48, Mon Oct 16 03:52:22 2006 UTC (11 years ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.47: +22 -0
lines
956618: Linux crashes on boot with XFS-DMAPI filesystem when CONFIG_XFS_TRACE is on
Merge of xfs-linux-melb:xfs-kern:27196a by kenmcd.
dmapi still needs to have XFS_VNODE_TRACE defined, so it doesn't mess up
struct xfs_vnode when XFS_TRACE is enabled. I had a brainwave on this one
- why not do all the #defines in xfs.h and fix the few files that don't
include it?
|
/*
* Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __XFS_H__
#define __XFS_H__
#ifdef CONFIG_XFS_DEBUG
#define STATIC
#define DEBUG 1
#define XFS_BUF_LOCK_TRACKING 1
/* #define QUOTADEBUG 1 */
#endif
#ifdef CONFIG_XFS_TRACE
#define XFS_ALLOC_TRACE 1
#define XFS_ATTR_TRACE 1
#define XFS_BLI_TRACE 1
#define XFS_BMAP_TRACE 1
#define XFS_BMBT_TRACE 1
#define XFS_DIR2_TRACE 1
#define XFS_DQUOT_TRACE 1
#define XFS_ILOCK_TRACE 1
#define XFS_LOG_TRACE 1
#define XFS_RW_TRACE 1
#define XFS_BUF_TRACE 1
#define XFS_VNODE_TRACE 1
#endif
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
#include <linux-2.6/xfs_linux.h>
#else
#include <linux-2.4/xfs_linux.h>
#endif
#endif /* __XFS_H__ */