#include "fs.h"
#include <string.h>
#include <minix/com.h>
+#include <assert.h>
#include <minix/u64.h>
#include "buf.h"
#include "inode.h"
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. */
if (b >= map_bits) break;
}
+ put_block(bp, MAP_BLOCK);
++block;
word = 0;
} while (--bcount > 0);