public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [RFC][PATCH] UBI: allocate verification buffer on demand
@ 2012-02-22 15:37 josselin.costanzi
  0 siblings, 0 replies; only message in thread
From: josselin.costanzi @ 2012-02-22 15:37 UTC (permalink / raw)
  To: linux-mtd; +Cc: Josselin Costanzi

From: Josselin Costanzi <josselin.costanzi@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-22 15:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22 15:37 [RFC][PATCH] UBI: allocate verification buffer on demand josselin.costanzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox