mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
parent
f48372465f
commit
e104f1e9da
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue