HomeFreeBSD

Use write_psize instead of write_asize when doing vdev_space_update.

Description

Use write_psize instead of write_asize when doing vdev_space_update.
Without this change the accounting of L2ARC usage would be wrong and
give 16EB free space because the number became negative and overflows.

Obtained from: FreeNAS (issue #6239)
MFC after: 2 weeks

Details

Provenance
delphijAuthored on
Parents
rS273059: Fix compiler locking diagnostic warnings.
Branches
Unknown
Tags
Unknown

Event Timeline