From 57f0f512b273f60d52568b8c6b77e17f5636edc0 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 5 Aug 2015 17:04:01 -0300 Subject: Initial import --- fs/ext3/bitmap.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 fs/ext3/bitmap.c (limited to 'fs/ext3/bitmap.c') 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 */ + -- cgit v1.2.3-54-g00ecf