Skip to content

Commit e0c8e42

Browse files
dedekindThomas Gleixner
authored andcommitted
[JFFS2] Debug code clean up - step 3
Various simplifiactions. printk format corrections. Convert more code to use the new debug functions. Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 6dac02a commit e0c8e42

14 files changed

Lines changed: 630 additions & 239 deletions

File tree

‎fs/jffs2/build.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* For licensing information, see the file 'LICENCE' in this directory.
99
*
10-
* $Id: build.c,v 1.74 2005/07/17 12:01:42 dedekind Exp $
10+
* $Id: build.c,v 1.75 2005/07/22 10:32:07 dedekind Exp $
1111
*
1212
*/
1313

@@ -104,7 +104,7 @@ static int jffs2_build_filesystem(struct jffs2_sb_info *c)
104104
goto exit;
105105

106106
D1(printk(KERN_DEBUG "Scanned flash completely\n"));
107-
D2(jffs2_dbg_dump_block_lists(c));
107+
jffs2_dbg_dump_block_lists_nolock(c);
108108

109109
c->flags |= JFFS2_SB_FLAG_BUILDING;
110110
/* Now scan the directory tree, increasing nlink according to every dirent found. */
@@ -168,7 +168,7 @@ static int jffs2_build_filesystem(struct jffs2_sb_info *c)
168168
c->flags &= ~JFFS2_SB_FLAG_BUILDING;
169169

170170
D1(printk(KERN_DEBUG "Pass 3 complete\n"));
171-
jffs2_dbg_dump_block_lists(c);
171+
jffs2_dbg_dump_block_lists_nolock(c);
172172

173173
/* Rotate the lists by some number to ensure wear levelling */
174174
jffs2_rotate_lists(c);

0 commit comments

Comments
 (0)