diff options
| author | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
|---|---|---|
| committer | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
| commit | d2e1446d81725c351dc73a03b397ce043fb18452 (patch) | |
| tree | 4dbc616b7f92aea39cd697a9084205ddb805e344 /fs/ext3/bitmap.c | |
first commit
Diffstat (limited to 'fs/ext3/bitmap.c')
| -rw-r--r-- | fs/ext3/bitmap.c | 20 |
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 */ + |
