Skip to content

Commit 0356781

Browse files
Or GerlitzPhilipp-Reisner
authored andcommitted
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>
1 parent 7961243 commit 0356781

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/block/drbd/drbd_req.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,11 +1127,7 @@ int drbd_make_request(struct request_queue *q, struct bio *bio)
11271127
const int sps = 1 << HT_SHIFT; /* sectors per slot */
11281128
const int mask = sps - 1;
11291129
const sector_t first_sectors = sps - (sect & mask);
1130-
bp = bio_split(bio,
1131-
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
1132-
bio_split_pool,
1133-
#endif
1134-
first_sectors);
1130+
bp = bio_split(bio, first_sectors);
11351131

11361132
/* we need to get a "reference count" (ap_bio_cnt)
11371133
* to avoid races with the disconnect/reconnect/suspend code.

0 commit comments

Comments
 (0)