svn commit: r273191 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Xin LI delphij at FreeBSD.org
Thu Oct 16 22:12:24 UTC 2014


Author: delphij
Date: Thu Oct 16 22:12:23 2014
New Revision: 273191
URL: https://svnweb.freebsd.org/changeset/base/273191

Log:
  MFV r273060:
  
  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)

Modified:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Thu Oct 16 22:07:43 2014	(r273190)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Thu Oct 16 22:12:23 2014	(r273191)
@@ -5228,7 +5228,7 @@ l2arc_write_buffers(spa_t *spa, l2arc_de
 	ARCSTAT_INCR(arcstat_l2_write_bytes, write_asize);
 	ARCSTAT_INCR(arcstat_l2_size, write_sz);
 	ARCSTAT_INCR(arcstat_l2_asize, write_asize);
-	vdev_space_update(dev->l2ad_vdev, write_asize, 0, 0);
+	vdev_space_update(dev->l2ad_vdev, write_psize, 0, 0);
 
 	/*
 	 * Bump device hand to the device start if it is approaching the end.


More information about the svn-src-all mailing list