#include <linux/mtd/blktrans.h>
#include <linux/kfifo.h>
#include <linux/sched.h>
#include <linux/completion.h>
#include <linux/mtd/mtd.h>
struct ftl_zone { … };
struct sm_ftl { … };
struct chs_entry { … };
#define SM_FTL_PARTN_BITS …
#define sm_printk(format, ...) …
#define dbg(format, ...) …
#define dbg_verbose(format, ...) …
static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block,
int put_free);
static void sm_mark_block_bad(struct sm_ftl *ftl, int zone_num, int block);
static int sm_recheck_media(struct sm_ftl *ftl);