UBI: reduce memory consumption
authorJosselin Costanzi <josselin.costanzi@mobile-devices.fr>
Wed, 22 Feb 2012 15:37:05 +0000 (16:37 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 9 Mar 2012 07:39:31 +0000 (09:39 +0200)
Remove the pre-allocated 'peb_buf2' buffer because we do not really need it.
The only reason UBI has it is to check that the data were written correctly.
But we do not have to have 2 buffers for this and waste RAM - we can just
compare CRC checksums instead. This reduces UBI memory consumption.

Artem bityutskiy: massaged the patch and commit message

Signed-off-by: Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

No differences found