diff options
author | Jarkko Lavinen <jarkko.lavinen@nokia.com> | 2011-02-14 09:16:11 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-03-11 09:22:46 -0500 |
commit | a321590246202f2598aca2f4ef63b992e8fc97ef (patch) | |
tree | cbb838704f7575bf5634c95fd1d91bef24e9d296 /drivers/mtd/Kconfig | |
parent | 115ee88c15b55859a8b59c5dccb3882bbd47e542 (diff) |
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 23088b3372d0..5fe01d556657 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -325,6 +325,24 @@ config MTD_OOPS | |||
325 | To use, add console=ttyMTDx to the kernel command line, | 325 | To use, add console=ttyMTDx to the kernel command line, |
326 | where x is the MTD device number to use. | 326 | where x is the MTD device number to use. |
327 | 327 | ||
328 | config MTD_SWAP | ||
329 | tristate "Swap on MTD device support" | ||
330 | depends on MTD && SWAP | ||
331 | select MTD_BLKDEVS | ||
332 | help | ||
333 | Provides volatile block device driver on top of mtd partition | ||
334 | suitable for swapping. The mapping of written blocks is not saved. | ||
335 | The driver provides wear leveling by storing erase counter into the | ||
336 | OOB. | ||
337 | |||
338 | config MTD_SWAP_STRICT | ||
339 | bool "Strict erase error handling" | ||
340 | depends on MTD_SWAP | ||
341 | help | ||
342 | Enables strict tolerance on failed erasures, marking erase blocks bad | ||
343 | right after the first failed operation. With non-strict mode the | ||
344 | erase operation is retried. | ||
345 | |||
328 | source "drivers/mtd/chips/Kconfig" | 346 | source "drivers/mtd/chips/Kconfig" |
329 | 347 | ||
330 | source "drivers/mtd/maps/Kconfig" | 348 | source "drivers/mtd/maps/Kconfig" |