JFFS2: jffs2_symlink/jffs2_mkdir/jffs2_mknod bug?

Tao Huang ulysses.huang at gmail.com
Tue Dec 1 21:11:13 EST 2009


On jffs2_symlink/jffs2_mkdir/jffs2_mknod, after jffs2_write_dnode,
any call jffs2_clear_inode will no call jffs2_mark_node_obsolete because
pino_nlink is not zero. This will make kernel BUG on jffs2_garbage_collect_live.

Run fsstress on NANDSIM can easy see this bug when no space, for example:
fsstress -p 2 -n 100000 -d /data -l 0 -s 100000 on 128KB NANDSIM.



More information about the linux-mtd mailing list