• Home
  • Raw
  • Download

Lines Matching refs:bm

17 	struct affs_bm_info *bm;  in affs_count_free_blocks()  local
28 bm = AFFS_SB(sb)->s_bitmap; in affs_count_free_blocks()
30 for (i = AFFS_SB(sb)->s_bmap_count; i > 0; bm++, i--) in affs_count_free_blocks()
31 free += bm->bm_free; in affs_count_free_blocks()
42 struct affs_bm_info *bm; in affs_free_block() local
55 bm = &sbi->s_bitmap[bmap]; in affs_free_block()
62 bh = affs_bread(sb, bm->bm_key); in affs_free_block()
84 bm->bm_free++; in affs_free_block()
95 affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key); in affs_free_block()
119 struct affs_bm_info *bm; in affs_alloc_block() local
146 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block()
150 if (bm->bm_free) in affs_alloc_block()
160 bm++; in affs_alloc_block()
165 bm = sbi->s_bitmap; in affs_alloc_block()
166 } while (!bm->bm_free); in affs_alloc_block()
174 bh = affs_bread(sb, bm->bm_key); in affs_alloc_block()
218 bm->bm_free -= AFFS_I(inode)->i_pa_cnt + 1; in affs_alloc_block()
235 affs_error(sb,"affs_read_block","Cannot read bitmap block %u", bm->bm_key); in affs_alloc_block()
246 struct affs_bm_info *bm; in affs_init_bitmap() local
267 size = sbi->s_bmap_count * sizeof(*bm); in affs_init_bitmap()
268 bm = sbi->s_bitmap = kzalloc(size, GFP_KERNEL); in affs_init_bitmap()
278 for (i = sbi->s_bmap_count; i > 0; bm++, i--) { in affs_init_bitmap()
281 bm->bm_key = be32_to_cpu(bmap_blk[blk]); in affs_init_bitmap()
282 bh = affs_bread(sb, bm->bm_key); in affs_init_bitmap()
290 bm->bm_key, sb->s_id); in affs_init_bitmap()
294 pr_debug("read bitmap block %d: %d\n", blk, bm->bm_key); in affs_init_bitmap()
295 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); in affs_init_bitmap()
344 bm--; in affs_init_bitmap()
345 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); in affs_init_bitmap()