diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2011-01-13 04:43:40 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:48:21 -0500 |
commit | 03567812d81dd87a810b2bd1e804f4001de03da5 (patch) | |
tree | fbed361cfc8bc6f816d85d5edca31b37a2044b5e /drivers | |
parent | 7961243b7bdd62d72b47eb2c0bee776c51a8a8e2 (diff) |
drbd: drop code present under #ifdef which is relevant to 2.6.28 and below
Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/drbd/drbd_req.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index c2cc28a55907..5c0c8be1bb0a 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c | |||
@@ -1127,11 +1127,7 @@ int drbd_make_request(struct request_queue *q, struct bio *bio) | |||
1127 | const int sps = 1 << HT_SHIFT; /* sectors per slot */ | 1127 | const int sps = 1 << HT_SHIFT; /* sectors per slot */ |
1128 | const int mask = sps - 1; | 1128 | const int mask = sps - 1; |
1129 | const sector_t first_sectors = sps - (sect & mask); | 1129 | const sector_t first_sectors = sps - (sect & mask); |
1130 | bp = bio_split(bio, | 1130 | bp = bio_split(bio, first_sectors); |
1131 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) | ||
1132 | bio_split_pool, | ||
1133 | #endif | ||
1134 | first_sectors); | ||
1135 | 1131 | ||
1136 | /* we need to get a "reference count" (ap_bio_cnt) | 1132 | /* we need to get a "reference count" (ap_bio_cnt) |
1137 | * to avoid races with the disconnect/reconnect/suspend code. | 1133 | * to avoid races with the disconnect/reconnect/suspend code. |