summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
authorJosselin Costanzi <josselin.costanzi@mobile-devices.fr>2012-02-22 16:37:05 +0100
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-03-09 09:39:31 +0200
commit43b043e78b876ce27034f167897b57fd2556ad29 (patch)
tree3397ed09387b4f74b4c2f23b1d04943baa0c7b11 /drivers/mtd/ubi/ubi.h
parent7eb3aa65853e1b223bfc786b023b702018cb76c0 (diff)
UBI: reduce memory consumption
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>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index d51d75d34446..cb93ad97468b 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -388,8 +388,7 @@ struct ubi_wl_entry;
* @mtd: MTD device descriptor
*
* @peb_buf1: a buffer of PEB size used for different purposes
- * @peb_buf2: another buffer of PEB size used for different purposes
- * @buf_mutex: protects @peb_buf1 and @peb_buf2
+ * @buf_mutex: protects @peb_buf1
* @ckvol_mutex: serializes static volume checking when opening
*
* @dbg: debugging information for this UBI device
@@ -472,7 +471,6 @@ struct ubi_device {
struct mtd_info *mtd;
void *peb_buf1;
- void *peb_buf2;
struct mutex buf_mutex;
struct mutex ckvol_mutex;