Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bitmap.c
Go to the documentation of this file.
1 /*
2  * linux/fs/ext3/bitmap.c
3  *
4  * Copyright (C) 1992, 1993, 1994, 1995
5  * Remy Card ([email protected])
6  * Laboratoire MASI - Institut Blaise Pascal
7  * Universite Pierre et Marie Curie (Paris VI)
8  */
9 
10 #include "ext3.h"
11 
12 #ifdef EXT3FS_DEBUG
13 
14 unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
15 {
16  return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars);
17 }
18 
19 #endif /* EXT3FS_DEBUG */
20