From: Adrian Bunk There's no need for ext2_count_free() #ifndef EXT2FS_DEBUG. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- fs/ext2/bitmap.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -puN fs/ext2/bitmap.c~fs-ext2-bitmapc-ext2_count_free-is-only-required-ifdef-ext2fs_debug fs/ext2/bitmap.c --- 25/fs/ext2/bitmap.c~fs-ext2-bitmapc-ext2_count_free-is-only-required-ifdef-ext2fs_debug Fri Nov 18 15:58:36 2005 +++ 25-akpm/fs/ext2/bitmap.c Fri Nov 18 15:58:36 2005 @@ -7,8 +7,12 @@ * Universite Pierre et Marie Curie (Paris VI) */ +#ifdef EXT2FS_DEBUG + #include +#include "ext2.h" + static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars) @@ -23,3 +27,6 @@ unsigned long ext2_count_free (struct bu nibblemap[(map->b_data[i] >> 4) & 0xf]; return (sum); } + +#endif /* EXT2FS_DEBUG */ + _