Skip to content

Commit

Permalink
[JFFS2] Debug code clean up - step 1
Browse files Browse the repository at this point in the history
Move debug functions into a seperate source file

Signed-off-by: Artem B. Bityutskiy <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
dedekind authored and Thomas Gleixner committed Nov 6, 2005
1 parent dae6227 commit 730554d
Show file tree
Hide file tree
Showing 14 changed files with 663 additions and 439 deletions.
4 changes: 2 additions & 2 deletions fs/jffs2/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#
# Makefile for the Linux Journalling Flash File System v2 (JFFS2)
#
# $Id: Makefile.common,v 1.9 2005/02/09 09:23:53 pavlov Exp $
# $Id: Makefile.common,v 1.10 2005/07/17 06:56:20 dedekind Exp $
#

obj-$(CONFIG_JFFS2_FS) += jffs2.o

jffs2-y := compr.o dir.o file.o ioctl.o nodelist.o malloc.o
jffs2-y += read.o nodemgmt.o readinode.o write.o scan.o gc.o
jffs2-y += symlink.o build.o erase.o background.o fs.o writev.o
jffs2-y += super.o
jffs2-y += super.o debug.o

jffs2-$(CONFIG_JFFS2_FS_WRITEBUFFER) += wbuf.o
jffs2-$(CONFIG_JFFS2_RUBIN) += compr_rubin.o
Expand Down
6 changes: 3 additions & 3 deletions fs/jffs2/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: build.c,v 1.71 2005/07/12 16:37:08 dedekind Exp $
* $Id: build.c,v 1.72 2005/07/17 06:56:20 dedekind Exp $
*
*/

Expand Down Expand Up @@ -104,7 +104,7 @@ static int jffs2_build_filesystem(struct jffs2_sb_info *c)
goto exit;

D1(printk(KERN_DEBUG "Scanned flash completely\n"));
D2(jffs2_dump_block_lists(c));
D2(jffs2_dbg_dump_block_lists(c));

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

D1(printk(KERN_DEBUG "Pass 3 complete\n"));
D2(jffs2_dump_block_lists(c));
D2(jffs2_dbg_dump_block_lists(c));

/* Rotate the lists by some number to ensure wear levelling */
jffs2_rotate_lists(c);
Expand Down
Loading

0 comments on commit 730554d

Please sign in to comment.