sa_impl: fix SA header bitfield docs

Off by one, confused me a while!

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16500
This commit is contained in:
Rob Norris 2024-09-18 06:53:39 +10:00 committed by Tony Hutter
parent bc0d89bfc1
commit c25d5140b0

View File

@ -167,8 +167,8 @@ typedef struct sa_hdr_phys {
* | hdrsz |layout | * | hdrsz |layout |
* +--------+-------+ * +--------+-------+
* *
* Bits 0-10 are the layout number * Bits 0-9 (10 bits) are the layout number (0-1023)
* Bits 11-16 are the size of the header. * Bits 10-15 (6 bits) are the size of the header (0-63)
* The hdrsize is the number * 8 * The hdrsize is the number * 8
* *
* For example. * For example.