]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 10 Sep 2013 19:47:26 +0000 (12:47 -0700)
commit676e373d0316e627eb4a4f9f79306246e819e4cb
treebe7d9a670b732dfbe64e01cd026c74409f11b6c9
parent31ac1e231efdc42f4c36196b2a6a21fc9410873d
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