X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fext3%2Fbitmap.c;h=b9176eed98d1258518bd9cebfbbdb071baa458fc;hb=9f7dd93de07420b423336d5d0028959e94778ddb;hp=cb16b4c5d5df4110fffe112518ef32c9c2c06ef7;hpb=d936cfc72032fb4af03d1edd99596d18ea1f081c;p=linux-2.6 diff --git a/fs/ext3/bitmap.c b/fs/ext3/bitmap.c index cb16b4c5d5..b9176eed98 100644 --- a/fs/ext3/bitmap.c +++ b/fs/ext3/bitmap.c @@ -7,11 +7,11 @@ * Universite Pierre et Marie Curie (Paris VI) */ -#ifdef EXT3FS_DEBUG - #include +#include +#include -#include "ext3_fs.h" +#ifdef EXT3FS_DEBUG static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; @@ -20,7 +20,7 @@ unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars) unsigned int i; unsigned long sum = 0; - if (!map) + if (!map) return (0); for (i = 0; i < numchars; i++) sum += nibblemap[map->b_data[i] & 0xf] +