summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-06 17:04:33 +0000
committerbde <bde@FreeBSD.org>1999-01-06 17:04:33 +0000
commite5ba679f2a90d510460570d881030f9c98457cb1 (patch)
tree44b41f0f1668dfad40cc37fe4136fd433bf2e024 /sys/ufs
parentf77c71a1d37471a9ad2532de295e1677f118557e (diff)
downloadFreeBSD-src-e5ba679f2a90d510460570d881030f9c98457cb1.zip
FreeBSD-src-e5ba679f2a90d510460570d881030f9c98457cb1.tar.gz
Ifdefed the conditionally used variable `prtrealloc'. Declare it
as volatile so that there is no chance that the code that it controls is optimised away.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index b0b9126..1460540 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95
- * $Id: ffs_alloc.c,v 1.53 1998/09/07 11:50:18 bde Exp $
+ * $Id: ffs_alloc.c,v 1.54 1998/11/13 01:01:44 dg Exp $
*/
#include "opt_quota.h"
@@ -343,7 +343,9 @@ SYSCTL_INT(_vfs_ffs, FFS_ASYNCFREE, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, ""
static int doreallocblks = 1;
SYSCTL_INT(_vfs_ffs, FFS_REALLOCBLKS, doreallocblks, CTLFLAG_RW, &doreallocblks, 0, "");
-static int prtrealloc = 0;
+#ifdef DEBUG
+static volatile int prtrealloc = 0;
+#endif
int
ffs_reallocblks(ap)
OpenPOWER on IntegriCloud