]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit5b99c2ffa980528a197f26c7d876cceeccce8dd5
tree65e3bbbccb3f796f0569c47fcfc00e222cd3066e
parent960e739d9e9f1c2346d8bdc65299ee2e1ed42218
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