From: Ben Gras Date: Thu, 24 Jun 2010 10:56:45 +0000 (+0000) Subject: mfs - added put_block() to statvfs loop. X-Git-Tag: v3.1.8~367 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=33c9d427fdf4eff6653a5640ce28431a50ce5fe5;p=minix.git mfs - added put_block() to statvfs loop. --- diff --git a/servers/mfs/stats.c b/servers/mfs/stats.c index 0191c3f60..f48fee317 100644 --- a/servers/mfs/stats.c +++ b/servers/mfs/stats.c @@ -1,6 +1,7 @@ #include "fs.h" #include #include +#include #include #include "buf.h" #include "inode.h" @@ -50,6 +51,7 @@ int map; /* IMAP (inode map) or ZMAP (zone map) */ bcount = bit_blocks; do { bp = get_block(sp->s_dev, start_block + block, NORMAL); + assert(bp); wlim = &bp->b_bitmap[FS_BITMAP_CHUNKS(sp->s_block_size)]; /* Iterate over the words in block. */ @@ -78,6 +80,7 @@ int map; /* IMAP (inode map) or ZMAP (zone map) */ if (b >= map_bits) break; } + put_block(bp, MAP_BLOCK); ++block; word = 0; } while (--bcount > 0);