summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2007-11-09 11:04:36 +0000
committerru <ru@FreeBSD.org>2007-11-09 11:04:36 +0000
commit1f9b2f54c80babda97c71ee3951c775523b48121 (patch)
tree0bf3f1c49330e87ee815c468c6839c4390d2cbdc /sys/ufs
parent083417ee240f8dd29f34ebb3c45fa79b0a6c82ef (diff)
downloadFreeBSD-src-1f9b2f54c80babda97c71ee3951c775523b48121.zip
FreeBSD-src-1f9b2f54c80babda97c71ee3951c775523b48121.tar.gz
Fix build without INVARIANTS and update a comment to match
a change made in previous revision.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 72b50dd..a3cc1a5 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -42,7 +42,7 @@
__FBSDID("$FreeBSD$");
/*
- * For now we want the safety net that the INVARIANTS and DEBUG flags provide.
+ * For now we want the safety net that the DEBUG flag provides.
*/
#ifndef DEBUG
#define DEBUG
@@ -3874,7 +3874,10 @@ initiate_write_inodeblock_ufs1(inodedep, bp)
struct ufs1_dinode *dp;
struct ufs1_dinode *sip;
struct fs *fs;
- ufs_lbn_t i, prevlbn = 0;
+ ufs_lbn_t i;
+#ifdef INVARIANTS
+ ufs_lbn_t prevlbn = 0;
+#endif
int deplist;
if (inodedep->id_state & IOSTARTED)
@@ -4017,7 +4020,10 @@ initiate_write_inodeblock_ufs2(inodedep, bp)
struct ufs2_dinode *dp;
struct ufs2_dinode *sip;
struct fs *fs;
- ufs_lbn_t i, prevlbn = 0;
+ ufs_lbn_t i;
+#ifdef INVARIANTS
+ ufs_lbn_t prevlbn = 0;
+#endif
int deplist;
if (inodedep->id_state & IOSTARTED)
OpenPOWER on IntegriCloud