JFFS2: add UBI support
This patch make JFFS2 able to work with UBI volumes via the emulated MTD devices which are directly mapped to these volumes. Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
This commit is contained in:
committed by
Frank Haverkamp
parent
801c135ce7
commit
0029da3bf4
@@ -672,6 +672,13 @@ static int jffs2_flash_setup(struct jffs2_sb_info *c) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* and an UBI volume */
|
||||
if (jffs2_ubivol(c)) {
|
||||
ret = jffs2_ubivol_setup(c);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -690,4 +697,9 @@ void jffs2_flash_cleanup(struct jffs2_sb_info *c) {
|
||||
if (jffs2_nor_wbuf_flash(c)) {
|
||||
jffs2_nor_wbuf_flash_cleanup(c);
|
||||
}
|
||||
|
||||
/* and an UBI volume */
|
||||
if (jffs2_ubivol(c)) {
|
||||
jffs2_ubivol_cleanup(c);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user