summaryrefslogtreecommitdiffstats
path: root/fs/ext3/bitmap.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-01-09 20:54:06 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 08:01:56 -0800
commit3af13763d696468d31f71a798155b33f681f221f (patch)
tree7a4b68f956cedf415462929139df6dc5385ae25e /fs/ext3/bitmap.c
parent4610a6bea7742ab34e40dcb776bd3feb52da10d6 (diff)
downloadlinux-3af13763d696468d31f71a798155b33f681f221f.tar.gz
linux-3af13763d696468d31f71a798155b33f681f221f.tar.bz2
linux-3af13763d696468d31f71a798155b33f681f221f.zip
[PATCH] fs/ext3/: small cleanups
This patch contains the following cleanups: - there's no need for ext3_count_free() #ifndef EXT3FS_DEBUG - having prototypes for ext3_count_free() in two different headers is nonsense Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3/bitmap.c')
-rw-r--r--fs/ext3/bitmap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/ext3/bitmap.c b/fs/ext3/bitmap.c
index 5b4ba3e246e6..cb16b4c5d5df 100644
--- a/fs/ext3/bitmap.c
+++ b/fs/ext3/bitmap.c
@@ -7,8 +7,11 @@
* Universite Pierre et Marie Curie (Paris VI)
*/
+#ifdef EXT3FS_DEBUG
+
#include <linux/buffer_head.h>
-#include "bitmap.h"
+
+#include "ext3_fs.h"
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
@@ -24,3 +27,6 @@ unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
nibblemap[(map->b_data[i] >> 4) & 0xf];
return (sum);
}
+
+#endif /* EXT3FS_DEBUG */
+