diff options
author | Jarkko Lavinen <jarkko.lavinen@nokia.com> | 2011-02-14 16:16:11 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-03-11 14:22:46 +0000 |
commit | a321590246202f2598aca2f4ef63b992e8fc97ef (patch) | |
tree | cbb838704f7575bf5634c95fd1d91bef24e9d296 /drivers/mtd/Kconfig | |
parent | 115ee88c15b55859a8b59c5dccb3882bbd47e542 (diff) | |
download | kernel_goldelico_gta04-a321590246202f2598aca2f4ef63b992e8fc97ef.zip kernel_goldelico_gta04-a321590246202f2598aca2f4ef63b992e8fc97ef.tar.gz kernel_goldelico_gta04-a321590246202f2598aca2f4ef63b992e8fc97ef.tar.bz2 |
mtd: Add mtdswap block driver
Add a driver for allowing an mtd device to be used as a block device for
swapping. The block device is volatile, and the mapping of swapped pages
is not stored on flash.
Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Tested-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/Kconfig')
-rw-r--r-- | drivers/mtd/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 23088b3..5fe01d5 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -325,6 +325,24 @@ config MTD_OOPS To use, add console=ttyMTDx to the kernel command line, where x is the MTD device number to use. +config MTD_SWAP + tristate "Swap on MTD device support" + depends on MTD && SWAP + select MTD_BLKDEVS + help + Provides volatile block device driver on top of mtd partition + suitable for swapping. The mapping of written blocks is not saved. + The driver provides wear leveling by storing erase counter into the + OOB. + +config MTD_SWAP_STRICT + bool "Strict erase error handling" + depends on MTD_SWAP + help + Enables strict tolerance on failed erasures, marking erase blocks bad + right after the first failed operation. With non-strict mode the + erase operation is retried. + source "drivers/mtd/chips/Kconfig" source "drivers/mtd/maps/Kconfig" |