blob: ef9c643e8e9d5ff75703227ec9f81f0684340246 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/fs/ext3/bitmap.c
3 *
4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr)
6 * Laboratoire MASI - Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
8 */
9
Al Viro4613ad12012-03-29 22:30:07 -040010#include "ext3.h"
Adrian Bunk3af13762006-01-09 20:54:06 -080011
Kirk Truec1f5a192006-03-25 03:07:47 -080012#ifdef EXT3FS_DEBUG
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Linus Torvalds1da177e2005-04-16 15:20:36 -070014unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
15{
Akinobu Mita10d47082012-07-30 14:41:06 -070016 return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars);
Linus Torvalds1da177e2005-04-16 15:20:36 -070017}
Adrian Bunk3af13762006-01-09 20:54:06 -080018
19#endif /* EXT3FS_DEBUG */
20