summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ext3/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ext3/bitmap.c')
-rw-r--r--kernel/fs/ext3/bitmap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/fs/ext3/bitmap.c b/kernel/fs/ext3/bitmap.c
new file mode 100644
index 000000000..ef9c643e8
--- /dev/null
+++ b/kernel/fs/ext3/bitmap.c
@@ -0,0 +1,20 @@
+/*
+ * linux/fs/ext3/bitmap.c
+ *
+ * Copyright (C) 1992, 1993, 1994, 1995
+ * Remy Card (card@masi.ibp.fr)
+ * Laboratoire MASI - Institut Blaise Pascal
+ * Universite Pierre et Marie Curie (Paris VI)
+ */
+
+#include "ext3.h"
+
+#ifdef EXT3FS_DEBUG
+
+unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
+{
+ return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars);
+}
+
+#endif /* EXT3FS_DEBUG */
+