UBI: allocate verification buffer on demand
RFC PATCH 1/1 UBI: allocate verification buffer on demand
From: Josselin Costanzi <[email protected]>
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(-)
Signature · 1 line
1.7.5.4