block: add a zone condition debug helper
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 25 Mar 2020 17:49:54 +0000 (10:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Mar 2020 19:39:09 +0000 (13:39 -0600)
commit02694e86356dcf72d39329e52630234ad687e206
treefa4d87c8a233e5a9fa6635b5aa450d79135612e0
parent01bb12fce73720f56eefd513bc07a2354a09b31f
block: add a zone condition debug helper

Add a helper to stringify the zone conditions. We use this helper in the
next patch to track zone conditions in tracepoints.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
include/linux/blkdev.h