block: make bi_phys_segments an unsigned int instead of short

raid5 can overflow with more than 255 stripes, and we can increase it
to an int for free on both 32 and 64-bit archs due to the padding.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Jens Axboe 2008-08-15 10:56:11 +02:00
parent 960e739d9e
commit 5b99c2ffa9
2 changed files with 7 additions and 7 deletions

View file

@ -75,7 +75,7 @@ struct bio {
/* Number of segments in this BIO after
* physical address coalescing is performed.
*/
unsigned short bi_phys_segments;
unsigned int bi_phys_segments;
unsigned int bi_size; /* residual I/O count */