summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher2011-07-06 14:20:49 +0200
committerPhilipp Reisner2014-02-17 16:46:42 +0100
commit59515a2e3e23cee7cf7b133f7241c689a9d71136 (patch)
tree3f8de0eff769becefa1add38e72ef63b4bf78f99 /drivers/block/drbd/drbd_main.c
parentdrbd: drbd_adm_new_resource(): Check if resource exists, not if it has any co... (diff)
downloadkernel-qcow2-linux-59515a2e3e23cee7cf7b133f7241c689a9d71136.tar.gz
kernel-qcow2-linux-59515a2e3e23cee7cf7b133f7241c689a9d71136.tar.xz
kernel-qcow2-linux-59515a2e3e23cee7cf7b133f7241c689a9d71136.zip
drbd: drbd_create_device(): Take a resource instead of a connection argument
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 522e103ce494..b00a8d74f6cb 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -2659,9 +2659,9 @@ static int init_submitter(struct drbd_device *device)
return 0;
}
-enum drbd_ret_code drbd_create_device(struct drbd_connection *connection, unsigned int minor, int vnr)
+enum drbd_ret_code drbd_create_device(struct drbd_resource *resource, unsigned int minor, int vnr)
{
- struct drbd_resource *resource = connection->resource;
+ struct drbd_connection *connection = first_connection(resource);
struct drbd_device *device;
struct drbd_peer_device *peer_device;
struct gendisk *disk;