Swap on MTD device support

modulename: mtdswap.ko

configname: CONFIG_MTD_SWAP

Linux Kernel Configuration
└─>Device Drivers
└─>Memory Technology Device (MTD) support
└─>Swap on MTD device support
In linux kernel since version 2.6.39 (release Date: 2011-05-18)  
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.

source code: