Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2014 02:20:25 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275096 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201411260220.sAQ2KPd4033238@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed Nov 26 02:20:25 2014
New Revision: 275096
URL: https://svnweb.freebsd.org/changeset/base/275096

Log:
  Revert r273060 per discussion with avg@ as we need to make L2ARC
  aware of 4K devices and this one is not the right fix anyway.

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Wed Nov 26 00:58:36 2014	(r275095)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Wed Nov 26 02:20:25 2014	(r275096)
@@ -5274,7 +5274,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_psize, 0, 0);
+	vdev_space_update(dev->l2ad_vdev, write_asize, 0, 0);
 
 	/*
 	 * Bump device hand to the device start if it is approaching the end.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411260220.sAQ2KPd4033238>