Skip to content

Commit c25d514

Browse files
robntonyhutter
authored andcommitted
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 <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes openzfs#16500
1 parent bc0d89b commit c25d514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/sys/sa_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ typedef struct sa_hdr_phys {
167167
* | hdrsz |layout |
168168
* +--------+-------+
169169
*
170-
* Bits 0-10 are the layout number
171-
* Bits 11-16 are the size of the header.
170+
* Bits 0-9 (10 bits) are the layout number (0-1023)
171+
* Bits 10-15 (6 bits) are the size of the header (0-63)
172172
* The hdrsize is the number * 8
173173
*
174174
* For example.

0 commit comments

Comments
 (0)