]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: stop using the bdev everywhere
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Apr 2017 21:01:59 +0000 (17:01 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 17 Apr 2017 15:58:42 +0000 (09:58 -0600)
commit72d577e9afe49c9caebfd0c70bcb65dee649bb53
tree89efaa7c6c95185f73bac682265cba3368192e1d
parent2bc063dc9d479783d946dffea032e6a62c88e4d6
nbd: stop using the bdev everywhere

In preparation for the upcoming netlink interface we need to not rely on
already having the bdev for the NBD device we are doing operations on.
Instead of passing the bdev around, just use it in places where we know
we already have the bdev.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c