| /linux/fs/ext2/ |
| H A D | ialloc.c | 110 struct buffer_head *bitmap_bh; in ext2_free_inode() local 137 bitmap_bh = read_inode_bitmap(sb, block_group); in ext2_free_inode() 138 if (!bitmap_bh) in ext2_free_inode() 143 bit, (void *) bitmap_bh->b_data)) in ext2_free_inode() 148 mark_buffer_dirty(bitmap_bh); in ext2_free_inode() 150 sync_dirty_buffer(bitmap_bh); in ext2_free_inode() 152 brelse(bitmap_bh); in ext2_free_inode() 423 struct buffer_head *bitmap_bh = NULL; in ext2_new_inode() local 462 brelse(bitmap_bh); in ext2_new_inode() 463 bitmap_bh = read_inode_bitmap(sb, group); in ext2_new_inode() [all …]
|
| H A D | balloc.c | 485 struct buffer_head *bitmap_bh = NULL; in ext2_free_blocks() local 520 brelse(bitmap_bh); in ext2_free_blocks() 521 bitmap_bh = read_block_bitmap(sb, block_group); in ext2_free_blocks() 522 if (!bitmap_bh) in ext2_free_blocks() 544 bit + i, bitmap_bh->b_data)) { in ext2_free_blocks() 552 mark_buffer_dirty(bitmap_bh); in ext2_free_blocks() 554 sync_dirty_buffer(bitmap_bh); in ext2_free_blocks() 565 brelse(bitmap_bh); in ext2_free_blocks() 669 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument 692 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate() [all …]
|
| /linux/fs/nilfs2/ |
| H A D | alloc.c | 584 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_alloc_entry() local 622 &bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 634 boff = nilfs_palloc_bitmap_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 635 bitmap = kmap_local_folio(bitmap_bh->b_folio, boff); in nilfs_palloc_prepare_alloc_entry() 649 brelse(bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 666 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_alloc_entry() 778 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_free_entry() local 786 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry() 793 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_free_entry() 823 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_freev() local [all …]
|
| /linux/fs/ext4/ |
| H A D | mballoc-test.c | 13 struct buffer_head bitmap_bh; member 219 grp_ctx->bitmap_bh.b_data = kzalloc(EXT4_BLOCK_SIZE(sb), GFP_KERNEL); in mbt_grp_ctx_init() 220 if (grp_ctx->bitmap_bh.b_data == NULL) in mbt_grp_ctx_init() 222 mb_set_bits(grp_ctx->bitmap_bh.b_data, max, sb->s_blocksize * 8 - max); in mbt_grp_ctx_init() 230 kfree(grp_ctx->bitmap_bh.b_data); in mbt_grp_ctx_release() 231 grp_ctx->bitmap_bh.b_data = NULL; in mbt_grp_ctx_release() 239 mb_set_bits(grp_ctx->bitmap_bh.b_data, start, len); in mbt_ctx_mark_used() 246 return grp_ctx->bitmap_bh.b_data; in mbt_ctx_bitmap() 268 mb_set_bits(ctx->grp_ctx[0].bitmap_bh.b_data, 0, 1); in mbt_ctx_init() 297 get_bh(&grp_ctx->bitmap_bh); in ext4_read_block_bitmap_nowait_stub() [all …]
|
| H A D | mballoc.c | 4093 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_context() local 4105 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_mb_mark_context() 4106 if (IS_ERR(bitmap_bh)) in ext4_mb_mark_context() 4107 return PTR_ERR(bitmap_bh); in ext4_mb_mark_context() 4110 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_context() 4111 err = ext4_journal_get_write_access(handle, sb, bitmap_bh, in ext4_mb_mark_context() 4141 if (mb_test_bit(blkoff + i, bitmap_bh->b_data) == in ext4_mb_mark_context() 4148 mb_set_bits(bitmap_bh->b_data, blkoff, len); in ext4_mb_mark_context() 4152 mb_clear_bits(bitmap_bh->b_data, blkoff, len); in ext4_mb_mark_context() 4157 ext4_block_bitmap_csum_set(sb, gdp, bitmap_bh); in ext4_mb_mark_context() [all …]
|
| /linux/fs/ocfs2/ |
| H A D | suballoc.h | 136 struct buffer_head *bitmap_bh, 141 struct buffer_head *bitmap_bh,
|
| H A D | localalloc.c | 53 struct buffer_head **bitmap_bh); 1093 struct buffer_head **bitmap_bh) in ocfs2_local_alloc_reserve_for_window() argument 1123 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window() 1124 get_bh(*bitmap_bh); in ocfs2_local_alloc_reserve_for_window()
|
| H A D | suballoc.c | 2946 struct buffer_head *bitmap_bh, in _ocfs2_free_clusters() argument 2973 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters() 2990 struct buffer_head *bitmap_bh, in ocfs2_free_clusters() argument 2994 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters() 3005 struct buffer_head *bitmap_bh, in ocfs2_release_clusters() argument 3009 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()
|