- Move some code out from #ifdef INVARIANTS.

This commit is contained in:
Jeff Roberson 2003-02-09 12:11:37 +00:00
parent 05e393f0cd
commit 69953c8435

View File

@ -929,12 +929,10 @@ vfs_backgroundwritedone(bp)
/*
* Find the original buffer that we are writing.
*/
#ifdef INVARIANTS
VI_LOCK(bp->b_vp);
if ((origbp = gbincore(bp->b_vp, bp->b_lblkno)) == NULL)
panic("backgroundwritedone: lost buffer");
VI_UNLOCK(bp->b_vp);
#endif
/*
* Process dependencies then return any unfinished ones.
*/