pstore/ram: Include ecc_size when calculating ecc_block
authorArve Hjønnevåg <arve@android.com>
Tue, 20 Mar 2012 23:01:31 +0000 (16:01 -0700)
committerAnton Vorontsov <anton@enomsg.org>
Thu, 4 Apr 2013 04:49:28 +0000 (21:49 -0700)
commit422ca8608c49d1e9bfed1c58a1ca448a8a38c0ad
tree5170cd8c86c720a8ab0932def99f61eec2488bbe
parentc53026722b5e5aaaf434565ddbe4d918c7d2a80d
pstore/ram: Include ecc_size when calculating ecc_block

Wastes less memory and allows using more memory for ecc than data.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
[jstultz: Tweaked commit subject]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
fs/pstore/ram_core.c