mtd/fs/jffs2 build.c,1.78,1.79
havasi at infradead.org
havasi at infradead.org
Wed Sep 7 07:22:01 EDT 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv4137
Modified Files:
build.c
Log Message:
[JFFS2] handle jffs2_sum_init() error codes in a more general way
Index: build.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/build.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- build.c 7 Sep 2005 08:34:54 -0000 1.78
+++ build.c 7 Sep 2005 11:21:57 -0000 1.79
@@ -313,6 +313,7 @@
int jffs2_do_mount_fs(struct jffs2_sb_info *c)
{
+ int ret;
int i;
c->free_size = c->flash_size;
@@ -352,8 +353,9 @@
c->highest_ino = 1;
c->summary = NULL;
- if (jffs2_sum_init(c))
- return -ENOMEM;
+ ret = jffs2_sum_init(c);
+ if (ret)
+ return ret;
if (jffs2_build_filesystem(c)) {
D1(printk(KERN_DEBUG "build_fs failed\n"));
More information about the linux-mtd-cvs
mailing list