]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: Stripe size isn't necessarily a power of two
authorKent Overstreet <kmo@daterainc.com>
Sat, 17 Aug 2013 09:13:15 +0000 (02:13 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 11 Nov 2013 05:55:55 +0000 (21:55 -0800)
commitd1d184c8525fb8dc43ffbe5c230cf9bd9135e9f6
tree5ac694ced25578b0b54893f69d74bbcaa65b0b67
parentca7f85430e3a95414aed1b067ec9524820b367a1
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>
drivers/md/bcache/bcache.h
drivers/md/bcache/super.c
drivers/md/bcache/sysfs.c
drivers/md/bcache/writeback.c
drivers/md/bcache/writeback.h