From: josselin.costanzi@mobile-devices.fr
To: linux-mtd@lists.infradead.org
Cc: Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
Subject: [RFC][PATCH] UBI: allocate verification buffer on demand
Date: Wed, 22 Feb 2012 16:37:04 +0100 [thread overview]
Message-ID: <4f450bb8.334cb40a.7321.64a3@mx.google.com> (raw)
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
reply other threads:[~2012-02-22 15:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4f450bb8.334cb40a.7321.64a3@mx.google.com \
--to=josselin.costanzi@mobile-devices.fr \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox