null_blk: create a helper for mem-backed ops
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 23 Aug 2019 04:45:17 +0000 (21:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Aug 2019 12:58:05 +0000 (06:58 -0600)
commit7ea88e229e9df18ecd624b0d39f3dba87432ba33
tree44cc348085bbf9b3b435f5ab19d83dd2fc7b71dc
parent8f94d1c1dc1e1094ef83fcadf1b992cf8ff7869e
null_blk: create a helper for mem-backed ops

This patch creates a helper for handling requests when null_blk is
memory backed in the null_handle_cmd(). Although the helper is very
simple right now, it makes the code flow consistent with the rest of
code in the null_handle_cmd() and provides a uniform code structure
for future code.

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