]> git.baikalelectronics.ru Git - kernel.git/commit
block: make bi_phys_segments an unsigned int instead of short
authorJens Axboe <jens.axboe@oracle.com>
Fri, 15 Aug 2008 08:56:11 +0000 (10:56 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:03 +0000 (08:56 +0200)
commit735d673381f1b8d83461ff0025556964b71a1120
tree65e3bbbccb3f796f0569c47fcfc00e222cd3066e
parent8bbc99f57ca14e626fba89c34e5ef837fd2b2114
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>
drivers/md/raid5.c
include/linux/bio.h