aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/build.c
diff options
context:
space:
mode:
authorFerenc Havasi <havasi@inf.u-szeged.hu>2005-09-07 07:22:01 -0400
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-11-06 15:31:05 -0500
commitc617e842482eb513070cbf233766099cff2a1663 (patch)
treeb49cfa5bf5e731f40bd6b10bcc8f59e592b8be6a /fs/jffs2/build.c
parente631ddba588783edd521c5a89f7b2902772fb691 (diff)
[JFFS2] Return real jffs2_sum_init() error code
Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/build.c')
-rw-r--r--fs/jffs2/build.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c
index f4a47a3b2a01..f2cf562ebd2a 100644
--- a/fs/jffs2/build.c
+++ b/fs/jffs2/build.c
@@ -7,7 +7,7 @@
7 * 7 *
8 * For licensing information, see the file 'LICENCE' in this directory. 8 * For licensing information, see the file 'LICENCE' in this directory.
9 * 9 *
10 * $Id: build.c,v 1.78 2005/09/07 08:34:54 havasi Exp $ 10 * $Id: build.c,v 1.79 2005/09/07 11:21:57 havasi Exp $
11 * 11 *
12 */ 12 */
13 13
@@ -313,6 +313,7 @@ static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c)
313 313
314int jffs2_do_mount_fs(struct jffs2_sb_info *c) 314int jffs2_do_mount_fs(struct jffs2_sb_info *c)
315{ 315{
316 int ret;
316 int i; 317 int i;
317 318
318 c->free_size = c->flash_size; 319 c->free_size = c->flash_size;
@@ -352,8 +353,9 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)
352 c->highest_ino = 1; 353 c->highest_ino = 1;
353 c->summary = NULL; 354 c->summary = NULL;
354 355
355 if (jffs2_sum_init(c)) 356 ret = jffs2_sum_init(c);
356 return -ENOMEM; 357 if (ret)
358 return ret;
357 359
358 if (jffs2_build_filesystem(c)) { 360 if (jffs2_build_filesystem(c)) {
359 D1(printk(KERN_DEBUG "build_fs failed\n")); 361 D1(printk(KERN_DEBUG "build_fs failed\n"));