[RFC][PATCH] UBI: allocate verification buffer on demand
josselin.costanzi at mobile-devices.fr
josselin.costanzi at mobile-devices.fr
Wed Feb 22 10:37:04 EST 2012
From: Josselin Costanzi <josselin.costanzi at mobile-devices.fr>
With recent Nand (2MiB erase block), UBI/UBIFS is allocating a lot of RAM each
time a mtd device is attached and each time a ubifs volume is mounted.
The following patch makes UBI allocate peb_buf2 on demand.
Note: I'm not sure using vmalloc while holding buf_mutex is okay or not.
I'm waiting for you comments.
Josselin Costanzi (1):
UBI: allocate verification buffer on demand
drivers/mtd/ubi/build.c | 6 ------
drivers/mtd/ubi/eba.c | 31 +++++++++++++++++++++++++++----
drivers/mtd/ubi/ubi.h | 4 +---
3 files changed, 28 insertions(+), 13 deletions(-)
--
1.7.5.4
More information about the linux-mtd
mailing list