From ec0209418fa613e0ee306daf91a9f7208aee6e10 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Wed, 18 Sep 2024 06:53:39 +1000 Subject: [PATCH] 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 Reviewed-by: Alexander Motin Reviewed-by: Tino Reichardt Signed-off-by: Rob Norris Closes #16500 --- include/sys/sa_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sys/sa_impl.h b/include/sys/sa_impl.h index 6eb0c9618..3632e5c99 100644 --- a/include/sys/sa_impl.h +++ b/include/sys/sa_impl.h @@ -167,8 +167,8 @@ typedef struct sa_hdr_phys { * | hdrsz |layout | * +--------+-------+ * - * Bits 0-10 are the layout number - * Bits 11-16 are the size of the header. + * Bits 0-9 (10 bits) are the layout number (0-1023) + * Bits 10-15 (6 bits) are the size of the header (0-63) * The hdrsize is the number * 8 * * For example.