Skip to content

Commit c539255

Browse files
author
Paul Dagnelie
committed
style
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
1 parent 665e132 commit c539255

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
@@ -5410,12 +5410,12 @@ zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl)
54105410
* +-------+-------+-------+-------+-------+
54115411
*
54125412
* 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.
54195419
*
54205420
* Every raidz allocation is sized to be a multiple of nparity+1 sectors. That
54215421
* 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)
55425542
continue;
55435543

55445544
/* 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);
55475547

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

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

55585558
/* 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);
55615561

55625562
/* 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);
55655565
}
55665566

55675567
/*

module/zfs/vdev_raidz.c

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

0 commit comments

Comments
 (0)