MTD: nandsim: add option to use a file to cache pages
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 12 Nov 2008 14:06:07 +0000 (16:06 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 10 Dec 2008 13:35:21 +0000 (13:35 +0000)
commita9fc8991883cdf029bd373a82cbc2d12a10799dd
treec695dd7928354028733f9621ba67a592d2b1c5ed
parent9359ea461b382de3249469d2165da45f4762b910
MTD: nandsim: add option to use a file to cache pages

Add a new module parameter 'cache_file' which causes nandsim
to use that file instead of memory to cache nand data.
Using a file allows the simulation of NAND that is bigger
than the available memory.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nandsim.c