Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2015 07:10:09 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277365 - head/sys/fs/ext2fs
Message-ID:  <201501190710.t0J7A9wx042836@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");	
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501190710.t0J7A9wx042836>