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