diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /fs/ext3/bitmap.c | |
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 00000000..ef9c643e --- /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 */ + |
