summaryrefslogtreecommitdiff
path: root/fs/ext3/bitmap.c
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-08-05 17:04:01 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-08-05 17:04:01 -0300
commit57f0f512b273f60d52568b8c6b77e17f5636edc0 (patch)
tree5e910f0e82173f4ef4f51111366a3f1299037a7b /fs/ext3/bitmap.c
Initial import
Diffstat (limited to 'fs/ext3/bitmap.c')
-rw-r--r--fs/ext3/bitmap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/ext3/bitmap.c b/fs/ext3/bitmap.c
new file mode 100644
index 000000000..ef9c643e8
--- /dev/null
+++ b/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 */
+