diff options
author | Jens Axboe | 2008-08-15 10:56:11 +0200 |
---|---|---|
committer | Jens Axboe | 2008-10-09 08:56:03 +0200 |
commit | 5b99c2ffa980528a197f26c7d876cceeccce8dd5 (patch) | |
tree | 65e3bbbccb3f796f0569c47fcfc00e222cd3066e /include/linux/bio.h | |
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/linux/bio.h')
-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 { /* 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 */ |