On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert
authorkib <kib@FreeBSD.org>
Tue, 16 Aug 2016 17:18:38 +0000 (17:18 +0000)
committerkib <kib@FreeBSD.org>
Tue, 16 Aug 2016 17:18:38 +0000 (17:18 +0000)
commitfd0eaea7aace6c4cef38a33888ae2bb069ebb96f
tree4644780eaae8687128e279f18aa6fdc6da0d63d1
parent0aeae89e961290a23a4bb11c8cb5663a86933a88
On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert
that recorded allocated blocks numbers match the physical block
numbers of dandling buffers which are released.

When finally freeing the blocks during unwind, assert that dandling
buffers where not re-allocated.  They shouldn't, because the vnode lock
is owned exclusive.

Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/ufs/ffs/ffs_balloc.c