[PATCH] XFS: fix compilation error

Linux Kernel Mailing List <[email protected]> Wed, 18 May 2005 16:09:08 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1520, 2005/05/18 13:09:08-03:00, [email protected]

	[PATCH] XFS: fix compilation error
	
	> 2.4.30 will not compile if XFS is turned on, but XFS debugging is not.
	> Culprit is:
	>
	> fs/xfs/linux-2.4/xfs_buf.c line 1076.  Apparently pagebuf_lock_value is used
	> somewhere else, even if it's not defined because debugging is off.
	
	Looks like a trivial one-liner got lost when merging from the SGI CVS tree.



 xfs_buf.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/fs/xfs/linux-2.4/xfs_buf.c b/fs/xfs/linux-2.4/xfs_buf.c
--- a/fs/xfs/linux-2.4/xfs_buf.c	2005-05-20 10:04:45 -07:00
+++ b/fs/xfs/linux-2.4/xfs_buf.c	2005-05-20 10:04:45 -07:00
@@ -1073,7 +1073,7 @@
 	return(locked ? 0 : -EBUSY);
 }
 
-#ifdef DEBUG
+#if defined(DEBUG) || defined(XFS_BLI_TRACE)
 /*
  *	pagebuf_lock_value
  *