summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-01-19 07:10:08 +0000
committerngie <ngie@FreeBSD.org>2015-01-19 07:10:08 +0000
commitf94357dba95e02b60c8a1a47ec87ed6f28b2aea8 (patch)
treeb12ad37dca4f2070bf3b1c50efa0ff9d6352c72c /sys/fs/ext2fs
parente901ab485a464056672377acf53a18e0cc16e462 (diff)
downloadFreeBSD-src-f94357dba95e02b60c8a1a47ec87ed6f28b2aea8.zip
FreeBSD-src-f94357dba95e02b60c8a1a47ec87ed6f28b2aea8.tar.gz
Fix the build when INVARIANTS is defined by restoring `bo`'s definition in
ext2_truncate(..) and by putting it under INVARIANTS ifdefs X-MFC with: r277354 MFC after: 2 weeks
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r--sys/fs/ext2fs/ext2_inode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2_inode.c b/sys/fs/ext2fs/ext2_inode.c
index 2fc2192..36768fb 100644
--- a/sys/fs/ext2fs/ext2_inode.c
+++ b/sys/fs/ext2fs/ext2_inode.c
@@ -121,8 +121,14 @@ ext2_truncate(struct vnode *vp, off_t length, int flags, struct ucred *cred,
e4fs_daddr_t count, nblocks, blocksreleased = 0;
int error, i, allerror;
off_t osize;
+#ifdef INVARIANTS
+ struct bufobj *bo;
+#endif
oip = VTOI(ovp);
+#ifdef INVARIANTS
+ bo = &ovp->v_bufobj;
+#endif
ASSERT_VOP_LOCKED(vp, "ext2_truncate");
OpenPOWER on IntegriCloud