diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-08-17 09:13:15 (GMT) |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 05:55:55 (GMT) |
commit | 2d679fc75678551485df62274edaed452becd16d (patch) | |
tree | 5ac694ced25578b0b54893f69d74bbcaa65b0b67 /drivers/md/bcache/bcache.h | |
parent | 77c320eb46e216c17aee5c943949229ccfed6904 (diff) | |
download | linux-2d679fc75678551485df62274edaed452becd16d.tar.xz |
bcache: Stripe size isn't necessarily a power of two
Originally I got this right... except that the divides didn't use
do_div(), which broke 32 bit kernels. When I went to fix that, I forgot
that the raid stripe size usually isn't a power of two... doh
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r-- | drivers/md/bcache/bcache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 5786156..6e836f2 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -437,7 +437,7 @@ struct bcache_device { int flush_done; uint64_t nr_stripes; - unsigned stripe_size_bits; + unsigned stripe_size; atomic_t *stripe_sectors_dirty; unsigned long sectors_dirty_last; |