Skip to content

Commit

Permalink
[PATCH] fs/ext2/bitmap.c: ext2_count_free() is only required #ifdef E…
Browse files Browse the repository at this point in the history
…XT2FS_DEBUG

There's no need for ext2_count_free() #ifndef EXT2FS_DEBUG.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jan 10, 2006
1 parent a0aa7d0 commit 4610a6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/ext2/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
* Universite Pierre et Marie Curie (Paris VI)
*/

#ifdef EXT2FS_DEBUG

#include <linux/buffer_head.h>

#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)
Expand All @@ -23,3 +27,6 @@ unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars)
nibblemap[(map->b_data[i] >> 4) & 0xf];
return (sum);
}

#endif /* EXT2FS_DEBUG */

0 comments on commit 4610a6b

Please sign in to comment.