svn commit: r277365 - head/sys/fs/ext2fs
Garrett Cooper
ngie at FreeBSD.org
Mon Jan 19 07:10:09 UTC 2015
Author: ngie
Date: Mon Jan 19 07:10:08 2015
New Revision: 277365
URL: https://svnweb.freebsd.org/changeset/base/277365
Log:
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
Modified:
head/sys/fs/ext2fs/ext2_inode.c
Modified: head/sys/fs/ext2fs/ext2_inode.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_inode.c Mon Jan 19 07:06:15 2015 (r277364)
+++ head/sys/fs/ext2fs/ext2_inode.c Mon Jan 19 07:10:08 2015 (r277365)
@@ -121,8 +121,14 @@ ext2_truncate(struct vnode *vp, off_t le
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");
More information about the svn-src-head
mailing list