@@ -5409,12 +5409,12 @@ zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl)
5409
5409
* +-------+-------+-------+-------+-------+
5410
5410
*
5411
5411
* Above, notice that the 4k block required one sector for parity and another
5412
- * for data. vdev_raidz_psize_to_asize() will return 8k and as such the pool's allocated
5413
- * and free properties will be adjusted by 8k. The dataset will not be charged
5414
- * 8k. Rather, it will be charged a value that is scaled according to the
5415
- * overhead of the 128k block on the same vdev. This 8k allocation will be
5416
- * charged 8k * 128k / 160k. 128k is from SPA_OLD_MAXBLOCKSIZE and 160k is as
5417
- * calculated in the 128k block example above.
5412
+ * for data. vdev_raidz_psize_to_asize() will return 8k and as such the pool's
5413
+ * allocated and free properties will be adjusted by 8k. The dataset will not
5414
+ * be charged 8k. Rather, it will be charged a value that is scaled according
5415
+ * to the overhead of the 128k block on the same vdev. This 8k allocation will
5416
+ * be charged 8k * 128k / 160k. 128k is from SPA_OLD_MAXBLOCKSIZE and 160k is
5417
+ * as calculated in the 128k block example above.
5418
5418
*
5419
5419
* Every raidz allocation is sized to be a multiple of nparity+1 sectors. That
5420
5420
* is, every raidz1 allocation will be a multiple of 2 sectors, raidz2
@@ -5541,12 +5541,12 @@ volsize_from_vdevs(zpool_handle_t *zhp, uint64_t nblocks, uint64_t blksize)
5541
5541
continue ;
5542
5542
5543
5543
/* allocation size for the "typical" 128k block */
5544
- tsize = vdev_raidz_psize_to_asize (ndisks , nparity , ashift ,
5545
- SPA_OLD_MAXBLOCKSIZE );
5544
+ tsize = vdev_raidz_psize_to_asize (ndisks , nparity ,
5545
+ ashift , SPA_OLD_MAXBLOCKSIZE );
5546
5546
5547
5547
/* allocation size for the blksize block */
5548
- asize = vdev_raidz_psize_to_asize (ndisks , nparity , ashift ,
5549
- blksize );
5548
+ asize = vdev_raidz_psize_to_asize (ndisks , nparity ,
5549
+ ashift , blksize );
5550
5550
} else {
5551
5551
uint64_t ndata ;
5552
5552
@@ -5555,12 +5555,12 @@ volsize_from_vdevs(zpool_handle_t *zhp, uint64_t nblocks, uint64_t blksize)
5555
5555
continue ;
5556
5556
5557
5557
/* allocation size for the "typical" 128k block */
5558
- tsize = vdev_draid_psize_to_asize (ndata + nparity , nparity ,
5559
- ashift , SPA_OLD_MAXBLOCKSIZE );
5558
+ tsize = vdev_draid_psize_to_asize (ndata + nparity ,
5559
+ nparity , ashift , SPA_OLD_MAXBLOCKSIZE );
5560
5560
5561
5561
/* allocation size for the blksize block */
5562
- asize = vdev_draid_psize_to_asize (ndata + nparity , nparity ,
5563
- ashift , blksize );
5562
+ asize = vdev_draid_psize_to_asize (ndata + nparity ,
5563
+ nparity , ashift , blksize );
5564
5564
}
5565
5565
5566
5566
/*
0 commit comments