diff options
author | Artem Bityutskiy <dedekind@infradead.org> | 2006-10-04 12:15:21 -0400 |
---|---|---|
committer | Frank Haverkamp <haver@vnet.ibm.com> | 2007-04-27 07:24:08 -0400 |
commit | 0029da3bf430eea498eee8cef5933f9214534b8a (patch) | |
tree | 8fd93094f370e5bde1640df97764ac56d3f118ba /fs/jffs2/os-linux.h | |
parent | 801c135ce73d5df1caf3eca35b66a10824ae0707 (diff) |
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>
Diffstat (limited to 'fs/jffs2/os-linux.h')
-rw-r--r-- | fs/jffs2/os-linux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/jffs2/os-linux.h b/fs/jffs2/os-linux.h index e07a0edcdb4f..8d92e45168ca 100644 --- a/fs/jffs2/os-linux.h +++ b/fs/jffs2/os-linux.h | |||
@@ -98,6 +98,9 @@ static inline void jffs2_init_inode_info(struct jffs2_inode_info *f) | |||
98 | #define jffs2_nor_wbuf_flash(c) (0) | 98 | #define jffs2_nor_wbuf_flash(c) (0) |
99 | #define jffs2_nor_wbuf_flash_setup(c) (0) | 99 | #define jffs2_nor_wbuf_flash_setup(c) (0) |
100 | #define jffs2_nor_wbuf_flash_cleanup(c) do {} while (0) | 100 | #define jffs2_nor_wbuf_flash_cleanup(c) do {} while (0) |
101 | #define jffs2_ubivol(c) (0) | ||
102 | #define jffs2_ubivol_setup(c) (0) | ||
103 | #define jffs2_ubivol_cleanup(c) do {} while (0) | ||
101 | 104 | ||
102 | #else /* NAND and/or ECC'd NOR support present */ | 105 | #else /* NAND and/or ECC'd NOR support present */ |
103 | 106 | ||
@@ -133,6 +136,9 @@ void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c); | |||
133 | #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH) | 136 | #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH) |
134 | int jffs2_dataflash_setup(struct jffs2_sb_info *c); | 137 | int jffs2_dataflash_setup(struct jffs2_sb_info *c); |
135 | void jffs2_dataflash_cleanup(struct jffs2_sb_info *c); | 138 | void jffs2_dataflash_cleanup(struct jffs2_sb_info *c); |
139 | #define jffs2_ubivol(c) (c->mtd->type == MTD_UBIVOLUME) | ||
140 | int jffs2_ubivol_setup(struct jffs2_sb_info *c); | ||
141 | void jffs2_ubivol_cleanup(struct jffs2_sb_info *c); | ||
136 | 142 | ||
137 | #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEABLE)) | 143 | #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEABLE)) |
138 | int jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info *c); | 144 | int jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info *c); |