diff options
author | NeilBrown <neilb@suse.de> | 2012-05-04 17:03:18 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-05-04 17:03:18 +1000 |
commit | b16b1b6cd052acbacc0a15f934bca9b354534d48 (patch) | |
tree | ba5b2e72e04a18a4bd83429f089d16637b9a6343 /mm/percpu-vm.c | |
parent | 69964ea4c7b68c9399f7977aa5b9aa6539a6a98a (diff) | |
download | linux-stable-b16b1b6cd052acbacc0a15f934bca9b354534d48.tar.gz linux-stable-b16b1b6cd052acbacc0a15f934bca9b354534d48.tar.bz2 linux-stable-b16b1b6cd052acbacc0a15f934bca9b354534d48.zip |
md/bitmap: fix calculation of 'chunks' - missing shift.
commit 61a0d80c "md/bitmap: discard CHUNK_BLOCK_SHIFT macro"
replaced CHUNK_BLOCK_RATIO() by the same text that was
replacing CHUNK_BLOCK_SHIFT() - which is clearly wrong.
The result is that 'chunks' is often too small by 1,
which can sometimes result in a crash (not sure how).
So use the correct replacement, and get rid of CHUNK_BLOCK_RATIO
which is no longe used.
Reported-by: Karl Newman <siliconfiend@gmail.com>
Tested-by: Karl Newman <siliconfiend@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mm/percpu-vm.c')
0 files changed, 0 insertions, 0 deletions