Skip to content

Commit

Permalink
sa_impl: fix SA header bitfield docs
Browse files Browse the repository at this point in the history
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 #16500
  • Loading branch information
robn authored Sep 17, 2024
1 parent 90af1e8 commit ec02094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sys/sa_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ec02094

Please sign in to comment.