From: Huang Shijie Date: Wed, 25 Sep 2013 06:58:20 +0000 (+0800) Subject: jffs2: do not support the MLC nand X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e104f1e9dab6726187810f5d9e06cadb946d4a61;p=linux-beck.git jffs2: do not support the MLC nand We should not support the MLC nand for jffs2. So if the nand type is MLC, we quit immediatly. Signed-off-by: Huang Shijie Signed-off-by: Brian Norris --- diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index fe3c0527545f..09b3ed455724 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c @@ -515,6 +515,10 @@ int jffs2_do_fill_super(struct super_block *sb, void *data, int silent) c = JFFS2_SB_INFO(sb); + /* Do not support the MLC nand */ + if (c->mtd->type == MTD_MLCNANDFLASH) + return -EINVAL; + #ifndef CONFIG_JFFS2_FS_WRITEBUFFER if (c->mtd->type == MTD_NANDFLASH) { pr_err("Cannot operate on NAND flash unless jffs2 NAND support is compiled in\n");