diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-06-09 01:38:00 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:44:55 +0100 |
commit | d8628a86576b278575750180fc5fab652a8224ca (patch) | |
tree | a20b4bf3b7ff43e3e913ca60e78c5f9b9d71af05 /drivers/block/drbd/drbd_nl.c | |
parent | a10f6b8ae6971680ead81444b48c11263abd70a1 (diff) | |
download | lwn-d8628a86576b278575750180fc5fab652a8224ca.tar.gz lwn-d8628a86576b278575750180fc5fab652a8224ca.zip |
drbd: Add struct drbd_device->resource
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_nl.c')
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index ddff39182a23..f563feb479b7 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -251,7 +251,7 @@ static int drbd_adm_prepare(struct sk_buff *skb, struct genl_info *info, first_peer_device(adm_ctx.device)->connection != adm_ctx.connection) { pr_warning("request: minor=%u, resource=%s; but that minor belongs to connection %s\n", adm_ctx.minor, adm_ctx.resource_name, - first_peer_device(adm_ctx.device)->connection->resource->name); + adm_ctx.device->resource->name); drbd_msg_put_info("minor exists in different resource"); return ERR_INVALID_REQUEST; } @@ -261,7 +261,7 @@ static int drbd_adm_prepare(struct sk_buff *skb, struct genl_info *info, pr_warning("request: minor=%u, volume=%u; but that minor is volume %u in %s\n", adm_ctx.minor, adm_ctx.volume, adm_ctx.device->vnr, - first_peer_device(adm_ctx.device)->connection->resource->name); + adm_ctx.device->resource->name); drbd_msg_put_info("minor exists as different volume"); return ERR_INVALID_REQUEST; } |