Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2019 05:54:13 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344690 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201903010554.x215sDi7076722@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Fri Mar  1 05:54:13 2019
New Revision: 344690
URL: https://svnweb.freebsd.org/changeset/base/344690

Log:
  Improve readability of the code by making it explicit where the 'c' variable
  starts. It is also more consistent with similar code in this file.

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

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c	Fri Mar  1 05:04:29 2019	(r344689)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c	Fri Mar  1 05:54:13 2019	(r344690)
@@ -568,7 +568,7 @@ vdev_raidz_map_alloc(abd_t *abd, uint64_t size, uint64
 			    abd_alloc_linear(rm->rm_col[c].rc_size, B_TRUE);
 		}
 
-		for (off = 0; c < acols; c++) {
+		for (off = 0, c = rm->rm_firstdatacol; c < acols; c++) {
 			rm->rm_col[c].rc_abd = abd_get_offset(abd, off);
 			off += rm->rm_col[c].rc_size;
 		}



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