Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03567812 authored by Or Gerlitz's avatar Or Gerlitz Committed by Philipp Reisner
Browse files

drbd: drop code present under #ifdef which is relevant to 2.6.28 and below

parent 7961243b
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1127,11 +1127,7 @@ int drbd_make_request(struct request_queue *q, struct bio *bio)
		const int sps = 1 << HT_SHIFT; /* sectors per slot */
		const int mask = sps - 1;
		const sector_t first_sectors = sps - (sect & mask);
		bp = bio_split(bio,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
				bio_split_pool,
#endif
				first_sectors);
		bp = bio_split(bio, first_sectors);

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