]> 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)
commit78a54ba9678a6998fa2f5091aa007202f2df0ed6
tree89efaa7c6c95185f73bac682265cba3368192e1d
parent0bf8e2797015ad1b1ec9f21071e941f81eb44426
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