Skip to content

Commit 7907c1c

Browse files
author
Paul Dagnelie
committed
style
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent a96994e commit 7907c1c

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

lib/libzfs/libzfs_dataset.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5409,12 +5409,12 @@ zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl)
54095409
* +-------+-------+-------+-------+-------+
54105410
*
54115411
* 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.
54185418
*
54195419
* Every raidz allocation is sized to be a multiple of nparity+1 sectors. That
54205420
* 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)
55415541
continue;
55425542

55435543
/* 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);
55465546

55475547
/* 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);
55505550
} else {
55515551
uint64_t ndata;
55525552

@@ -5555,12 +5555,12 @@ volsize_from_vdevs(zpool_handle_t *zhp, uint64_t nblocks, uint64_t blksize)
55555555
continue;
55565556

55575557
/* 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);
55605560

55615561
/* 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);
55645564
}
55655565

55665566
/*

module/zfs/vdev_raidz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ vdev_raidz_get_logical_width(vdev_raidz_t *vdrz, uint64_t txg)
22372237
/*
22382238
* This code converts an asize into the largest psize that can safely be written
22392239
* to an allocation of that size for this vdev.
2240-
*
2240+
*
22412241
* Note that this function will not take into account the effect of gang
22422242
* headers, which also modify the ASIZE of the DVAs. It is purely a reverse of
22432243
* the psize_to_asize function.

0 commit comments

Comments
 (0)