jffs2reset: avoid code duplication in jffs2_reset and jffs2_mark