aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-08-15 10:56:11 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 08:56:03 +0200
commit5b99c2ffa980528a197f26c7d876cceeccce8dd5 (patch)
tree65e3bbbccb3f796f0569c47fcfc00e222cd3066e /include/linux
parent960e739d9e9f1c2346d8bdc65299ee2e1ed42218 (diff)
downloadkernel_samsung_espresso10-5b99c2ffa980528a197f26c7d876cceeccce8dd5.zip
kernel_samsung_espresso10-5b99c2ffa980528a197f26c7d876cceeccce8dd5.tar.gz
kernel_samsung_espresso10-5b99c2ffa980528a197f26c7d876cceeccce8dd5.tar.bz2
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/bio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index dfc3556..2c0c090 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -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 */