Skip to content

Commit 8858e8d

Browse files
damien-lemoalaxboe
authored andcommitted
block: fix uapi blkzoned.h comments
Update the kdoc comments for struct blk_zone (capacity field description missing) and for struct blk_zone_report (flags field description missing). Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 47ce030 commit 8858e8d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

include/uapi/linux/blkzoned.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,15 @@ enum blk_zone_report_flags {
9393
* @non_seq: Flag indicating that the zone is using non-sequential resources
9494
* (for host-aware zoned block devices only).
9595
* @reset: Flag indicating that a zone reset is recommended.
96-
* @reserved: Padding to 64 B to match the ZBC/ZAC defined zone descriptor size.
96+
* @resv: Padding for 8B alignment.
97+
* @capacity: Zone usable capacity in 512 B sector units
98+
* @reserved: Padding to 64 B to match the ZBC, ZAC and ZNS defined zone
99+
* descriptor size.
97100
*
98-
* start, len and wp use the regular 512 B sector unit, regardless of the
99-
* device logical block size. The overall structure size is 64 B to match the
100-
* ZBC/ZAC defined zone descriptor and allow support for future additional
101-
* zone information.
101+
* start, len, capacity and wp use the regular 512 B sector unit, regardless
102+
* of the device logical block size. The overall structure size is 64 B to
103+
* match the ZBC, ZAC and ZNS defined zone descriptor and allow support for
104+
* future additional zone information.
102105
*/
103106
struct blk_zone {
104107
__u64 start; /* Zone start sector */
@@ -118,7 +121,7 @@ struct blk_zone {
118121
*
119122
* @sector: starting sector of report
120123
* @nr_zones: IN maximum / OUT actual
121-
* @reserved: padding to 16 byte alignment
124+
* @flags: one or more flags as defined by enum blk_zone_report_flags.
122125
* @zones: Space to hold @nr_zones @zones entries on reply.
123126
*
124127
* The array of at most @nr_zones must follow this structure in memory.

0 commit comments

Comments
 (0)