projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0aa7d0
)
[PATCH] fs/ext2/bitmap.c: ext2_count_free() is only required #ifdef EXT2FS_DEBUG
author
Adrian Bunk
<bunk@stusta.de>
Tue, 10 Jan 2006 04:54:05 +0000
(20:54 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:56 +0000
(08:01 -0800)
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>
fs/ext2/bitmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext2/bitmap.c
b/fs/ext2/bitmap.c
index 20145b74623f880c807cb5e16104381c83f02b14..e9983a0dd39674fe68133ac741a09385e384d61d 100644
(file)
--- a/
fs/ext2/bitmap.c
+++ b/
fs/ext2/bitmap.c
@@
-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)
@@
-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 */
+