null_blk: create a helper for badblocks
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 23 Aug 2019 04:45:16 +0000 (21:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Aug 2019 12:58:05 +0000 (06:58 -0600)
commit8f94d1c1dc1e1094ef83fcadf1b992cf8ff7869e
tree583268bd4b7c97c0ea0be33ac8d7474bc70f170a
parentadb84284796be4989dc3b48c7eef2784af45431d
null_blk: create a helper for badblocks

This patch creates a helper for handling badblocks code in the
null_handle_cmd().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c