HomeFreeBSD

On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert

Description

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

Details

Provenance
kibAuthored on
Reviewer
mckusick
Parents
rS304230: Add two new macros, SLIST_CONCAT and LIST_CONCAT. Note in both the
Branches
Unknown
Tags
Unknown