aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/bitmap.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-01-09 23:54:05 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:56 -0500
commit4610a6bea7742ab34e40dcb776bd3feb52da10d6 (patch)
tree5ab0d7a0e6109cb8e2d80400ba21846b56cc8d54 /fs/ext2/bitmap.c
parenta0aa7d0639277f375989071fb52a7ce78beeef97 (diff)
[PATCH] fs/ext2/bitmap.c: ext2_count_free() is only required #ifdef EXT2FS_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>
Diffstat (limited to 'fs/ext2/bitmap.c')
-rw-r--r--fs/ext2/bitmap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext2/bitmap.c b/fs/ext2/bitmap.c
index 20145b74623f..e9983a0dd396 100644
--- a/fs/ext2/bitmap.c
+++ b/fs/ext2/bitmap.c
@@ -7,8 +7,12 @@
7 * Universite Pierre et Marie Curie (Paris VI) 7 * Universite Pierre et Marie Curie (Paris VI)
8 */ 8 */
9 9
10#ifdef EXT2FS_DEBUG
11
10#include <linux/buffer_head.h> 12#include <linux/buffer_head.h>
11 13
14#include "ext2.h"
15
12static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; 16static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
13 17
14unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars) 18unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars)
@@ -23,3 +27,6 @@ unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars)
23 nibblemap[(map->b_data[i] >> 4) & 0xf]; 27 nibblemap[(map->b_data[i] >> 4) & 0xf];
24 return (sum); 28 return (sum);
25} 29}
30
31#endif /* EXT2FS_DEBUG */
32