OSDN Git Service

null_blk: clean up the block device operations
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 02:39:26 +0000 (11:39 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2019 02:11:59 +0000 (19:11 -0700)
commite3f89564c557ab756fd147cfe68648b935bc5b42
tree837ebb594b53e12a622328eba89d7fcc28658fdb
parent5eac3eb30c9ab9ee7fe2bd9aa9db6373cabb77f8
null_blk: clean up the block device operations

Remove the pointless stub open and release methods, give the operations
vector a slightly less confusing name, and use normal alignment for the
assignment operators.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c