diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2010-12-09 08:23:27 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:36:22 -0500 |
commit | 6184ea2145609b4ad63b141bf1f8124135ff4949 (patch) | |
tree | 2141b705c93c301cd496480179d9a5bb1193877c /drivers/block | |
parent | bb4379464efeb4624757e2cc0bf9207a309c1075 (diff) |
drbd: This code is dead now
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 8088744d0ec1..00dcb1172ca8 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -2179,10 +2179,7 @@ static int drbd_asb_recover_0p(struct drbd_conf *mdev) __must_hold(local) | |||
2179 | 2179 | ||
2180 | static int drbd_asb_recover_1p(struct drbd_conf *mdev) __must_hold(local) | 2180 | static int drbd_asb_recover_1p(struct drbd_conf *mdev) __must_hold(local) |
2181 | { | 2181 | { |
2182 | int self, peer, hg, rv = -100; | 2182 | int hg, rv = -100; |
2183 | |||
2184 | self = mdev->ldev->md.uuid[UI_BITMAP] & 1; | ||
2185 | peer = mdev->p_uuid[UI_BITMAP] & 1; | ||
2186 | 2183 | ||
2187 | switch (mdev->net_conf->after_sb_1p) { | 2184 | switch (mdev->net_conf->after_sb_1p) { |
2188 | case ASB_DISCARD_YOUNGER_PRI: | 2185 | case ASB_DISCARD_YOUNGER_PRI: |
@@ -2231,10 +2228,7 @@ static int drbd_asb_recover_1p(struct drbd_conf *mdev) __must_hold(local) | |||
2231 | 2228 | ||
2232 | static int drbd_asb_recover_2p(struct drbd_conf *mdev) __must_hold(local) | 2229 | static int drbd_asb_recover_2p(struct drbd_conf *mdev) __must_hold(local) |
2233 | { | 2230 | { |
2234 | int self, peer, hg, rv = -100; | 2231 | int hg, rv = -100; |
2235 | |||
2236 | self = mdev->ldev->md.uuid[UI_BITMAP] & 1; | ||
2237 | peer = mdev->p_uuid[UI_BITMAP] & 1; | ||
2238 | 2232 | ||
2239 | switch (mdev->net_conf->after_sb_2p) { | 2233 | switch (mdev->net_conf->after_sb_2p) { |
2240 | case ASB_DISCARD_YOUNGER_PRI: | 2234 | case ASB_DISCARD_YOUNGER_PRI: |