diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-08-15 04:56:11 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:03 -0400 |
commit | 5b99c2ffa980528a197f26c7d876cceeccce8dd5 (patch) | |
tree | 65e3bbbccb3f796f0569c47fcfc00e222cd3066e /include | |
parent | 960e739d9e9f1c2346d8bdc65299ee2e1ed42218 (diff) |
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')
-rw-r--r-- | include/linux/bio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index dfc3556d311c..2c0c09034fd2 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -75,7 +75,7 @@ struct bio { | |||
75 | /* Number of segments in this BIO after | 75 | /* Number of segments in this BIO after |
76 | * physical address coalescing is performed. | 76 | * physical address coalescing is performed. |
77 | */ | 77 | */ |
78 | unsigned short bi_phys_segments; | 78 | unsigned int bi_phys_segments; |
79 | 79 | ||
80 | unsigned int bi_size; /* residual I/O count */ | 80 | unsigned int bi_size; /* residual I/O count */ |
81 | 81 | ||