summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-02-10 13:45:46 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-10-14 16:44:58 +0200
commitbbeb641c3e4982d6bba21188545a7fd44ab0a715 (patch)
treeeaceb0498387fcef6ad853a92b4db76d6c246e55 /drivers/block/drbd/drbd_int.h
parent56707f9e873108c0173b4edf20ea452e1d2a89d2 (diff)
downloadlwn-bbeb641c3e4982d6bba21188545a7fd44ab0a715.tar.gz
lwn-bbeb641c3e4982d6bba21188545a7fd44ab0a715.zip
drbd: Killed volume0; last step of multi-volume-enablement
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r--drivers/block/drbd/drbd_int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index e2b59f58a0aa..f718124c5c82 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -918,8 +918,8 @@ enum {
struct drbd_tconn { /* is a resource from the config file */
char *name; /* Resource name */
struct list_head all_tconn; /* List of all drbd_tconn, prot by global_state_lock */
- struct drbd_conf *volume0; /* TODO: Remove me again */
struct idr volumes; /* <tconn, vnr> to mdev mapping */
+ enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */
unsigned long flags;
struct net_conf *net_conf; /* protected by get_net_conf() and put_net_conf() */
@@ -2024,7 +2024,7 @@ static inline int get_net_conf(struct drbd_tconn *tconn)
int have_net_conf;
atomic_inc(&tconn->net_cnt);
- have_net_conf = tconn->volume0->state.conn >= C_UNCONNECTED;
+ have_net_conf = tconn->cstate >= C_UNCONNECTED;
if (!have_net_conf)
put_net_conf(tconn);
return have_net_conf;