History

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).

Damien Le Moal committed 6 years ago

Commit 8858e8d1 parent 47ce0301 file · +9 −6Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/blkzoned.h+9−6
@@ -93,12 +93,15 @@ enum blk_zone_report_flags { · 92 unmodified lines
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 { · 13 unmodified lines
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.