raid5.c (64b9fb5704a479d98a59f2a1d45d3331a8f847f8) raid5.c (8a78362c4eefc1deddbefe2c7f38aabbc2429d6b)
1/*
2 * raid5.c : Multiple Devices driver for Linux
3 * Copyright (C) 1996, 1997 Ingo Molnar, Miguel de Icaza, Gadi Oxman
4 * Copyright (C) 1999, 2000 Ingo Molnar
5 * Copyright (C) 2002, 2003 H. Peter Anvin
6 *
7 * RAID-4/5/6 management functions.
8 * Thanks to Penguin Computing for making the RAID-6 development possible

--- 3725 unchanged lines hidden (view full) ---

3734
3735static int bio_fits_rdev(struct bio *bi)
3736{
3737 struct request_queue *q = bdev_get_queue(bi->bi_bdev);
3738
3739 if ((bi->bi_size>>9) > queue_max_sectors(q))
3740 return 0;
3741 blk_recount_segments(q, bi);
1/*
2 * raid5.c : Multiple Devices driver for Linux
3 * Copyright (C) 1996, 1997 Ingo Molnar, Miguel de Icaza, Gadi Oxman
4 * Copyright (C) 1999, 2000 Ingo Molnar
5 * Copyright (C) 2002, 2003 H. Peter Anvin
6 *
7 * RAID-4/5/6 management functions.
8 * Thanks to Penguin Computing for making the RAID-6 development possible

--- 3725 unchanged lines hidden (view full) ---

3734
3735static int bio_fits_rdev(struct bio *bi)
3736{
3737 struct request_queue *q = bdev_get_queue(bi->bi_bdev);
3738
3739 if ((bi->bi_size>>9) > queue_max_sectors(q))
3740 return 0;
3741 blk_recount_segments(q, bi);
3742 if (bi->bi_phys_segments > queue_max_phys_segments(q))
3742 if (bi->bi_phys_segments > queue_max_segments(q))
3743 return 0;
3744
3745 if (q->merge_bvec_fn)
3746 /* it's too hard to apply the merge_bvec_fn at this stage,
3747 * just just give up
3748 */
3749 return 0;
3750

--- 2159 unchanged lines hidden ---
3743 return 0;
3744
3745 if (q->merge_bvec_fn)
3746 /* it's too hard to apply the merge_bvec_fn at this stage,
3747 * just just give up
3748 */
3749 return 0;
3750

--- 2159 unchanged lines hidden ---