Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: Fix a source code comment in include/uapi/linux/blkzoned.h

Fix the symbolic names for zone conditions in the blkzoned.h header
file.

Cc: Hannes Reinecke <hare@suse.de>
Cc: Damien Le Moal <dlemoal@kernel.org>
Fixes: 6a0cb1bc106f ("block: Implement support for zoned block devices")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230706201422.3987341-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Bart Van Assche and committed by
Jens Axboe
e0933b52 856d8e3c

+5 -5
+5 -5
include/uapi/linux/blkzoned.h
··· 51 51 * 52 52 * The Zone Condition state machine in the ZBC/ZAC standards maps the above 53 53 * deinitions as: 54 - * - ZC1: Empty | BLK_ZONE_EMPTY 54 + * - ZC1: Empty | BLK_ZONE_COND_EMPTY 55 55 * - ZC2: Implicit Open | BLK_ZONE_COND_IMP_OPEN 56 56 * - ZC3: Explicit Open | BLK_ZONE_COND_EXP_OPEN 57 - * - ZC4: Closed | BLK_ZONE_CLOSED 58 - * - ZC5: Full | BLK_ZONE_FULL 59 - * - ZC6: Read Only | BLK_ZONE_READONLY 60 - * - ZC7: Offline | BLK_ZONE_OFFLINE 57 + * - ZC4: Closed | BLK_ZONE_COND_CLOSED 58 + * - ZC5: Full | BLK_ZONE_COND_FULL 59 + * - ZC6: Read Only | BLK_ZONE_COND_READONLY 60 + * - ZC7: Offline | BLK_ZONE_COND_OFFLINE 61 61 * 62 62 * Conditions 0x5 to 0xC are reserved by the current ZBC/ZAC spec and should 63 63 * be considered invalid.