[PATCH 1/6] mtd: nandsim: convert pages_written[] to bitmap

Artem Bityutskiy dedekind1 at gmail.com
Mon Aug 5 09:02:53 EDT 2013


On Sun, 2013-07-28 at 11:21 +0900, Akinobu Mita wrote:
> nandsim.pages_written[] is the array of unsigned char which is indexed
> by the page number and used for identifying which pages have been written
> when cache_file is used.  Each entry holds 0 (not written) or 1 (written),
> so it can be converted to bitmap.  This reduces the allocation size of
> pages_written[] by 1/8.

Pushed all to l2-mtd.git, thanks.

I wonder, what is your motivation for doing this? Did you just notice
the imperfection and decided to fix it, or you really suffer from too
much memory allocated?

Thanks!

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list