freebsd-dev/sys/cddl/contrib
Xin LI ba6e85e0cf 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
2014-10-13 20:39:51 +00:00
..
opensolaris Use write_psize instead of write_asize when doing vdev_space_update. 2014-10-13 20:39:51 +00:00