Lines Matching refs:block
8 * block allocation, deallocation, calculation of free space.
39 affs_free_block(struct super_block *sb, u32 block)
47 pr_debug("%s(%u)\n", __func__, block);
49 if (block > sbi->s_partition_size)
52 blk = block - sbi->s_reserved;
72 /* mark block free */
90 affs_warning(sb,"affs_free_block","Trying to free block %u which is already free", block);
95 affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key);
102 affs_error(sb, "affs_free_block","Block %u outside partition", block);
106 * Allocate a block in the given allocation zone.
140 // affs_warning(sb, "affs_balloc", "no last alloc block");
181 /* find an unused block in this bitmap block */
235 affs_error(sb,"affs_read_block","Cannot read bitmap block %u", bm->bm_key);
294 pr_debug("read bitmap block %d: %d\n", blk, bm->bm_key);
297 /* Don't try read the extension if this is the last block,
343 /* recalculate bitmap count for last block */