bitmap.c 426 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9
/*
 *  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)
 */

A
Al Viro 已提交
10
#include "ext3.h"
A
Adrian Bunk 已提交
11

12
#ifdef EXT3FS_DEBUG
L
Linus Torvalds 已提交
13 14 15

unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
{
A
Akinobu Mita 已提交
16
	return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars);
L
Linus Torvalds 已提交
17
}
A
Adrian Bunk 已提交
18 19 20

#endif  /*  EXT3FS_DEBUG  */