Home
last modified time | relevance | path

Searched refs:bitmap_bh (Results 1 – 11 of 11) sorted by relevance

/linux/fs/ext2/
H A Dialloc.c110 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 Dballoc.c485 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/ext4/
H A Dialloc.c240 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local
287 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode()
289 if (IS_ERR(bitmap_bh)) { in ext4_free_inode()
290 fatal = PTR_ERR(bitmap_bh); in ext4_free_inode()
291 bitmap_bh = NULL; in ext4_free_inode()
302 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode()
303 fatal = ext4_journal_get_write_access(handle, sb, bitmap_bh, in ext4_free_inode()
316 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
330 ext4_inode_bitmap_csum_set(sb, gdp, bitmap_bh); in ext4_free_inode()
349 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
[all …]
H A Dmballoc-test.c14 struct buffer_head bitmap_bh; member
220 grp_ctx->bitmap_bh.b_data = kzalloc(EXT4_BLOCK_SIZE(sb), GFP_KERNEL); in mbt_grp_ctx_init()
221 if (grp_ctx->bitmap_bh.b_data == NULL) in mbt_grp_ctx_init()
223 mb_set_bits(grp_ctx->bitmap_bh.b_data, max, sb->s_blocksize * 8 - max); in mbt_grp_ctx_init()
231 kfree(grp_ctx->bitmap_bh.b_data); in mbt_grp_ctx_release()
232 grp_ctx->bitmap_bh.b_data = NULL; in mbt_grp_ctx_release()
240 mb_set_bits(grp_ctx->bitmap_bh.b_data, start, len); in mbt_ctx_mark_used()
247 return grp_ctx->bitmap_bh.b_data; in mbt_ctx_bitmap()
269 mb_set_bits(ctx->grp_ctx[0].bitmap_bh.b_data, 0, 1); in mbt_ctx_init()
298 get_bh(&grp_ctx->bitmap_bh); in ext4_read_block_bitmap_nowait_stub()
[all …]
H A Dballoc.c781 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_clusters() local
797 brelse(bitmap_bh); in ext4_count_free_clusters()
798 bitmap_bh = ext4_read_block_bitmap(sb, i); in ext4_count_free_clusters()
799 if (IS_ERR(bitmap_bh)) { in ext4_count_free_clusters()
800 bitmap_bh = NULL; in ext4_count_free_clusters()
804 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_clusters()
810 brelse(bitmap_bh); in ext4_count_free_clusters()
H A Dmballoc.c4093 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 …]
H A Dinode.c4821 struct buffer_head *bitmap_bh; in __ext4_get_inode_loc() local
4827 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc()
4828 if (unlikely(!bitmap_bh)) in __ext4_get_inode_loc()
4836 if (!buffer_uptodate(bitmap_bh)) { in __ext4_get_inode_loc()
4837 brelse(bitmap_bh); in __ext4_get_inode_loc()
4843 if (ext4_test_bit(i, bitmap_bh->b_data)) in __ext4_get_inode_loc()
4846 brelse(bitmap_bh); in __ext4_get_inode_loc()
/linux/fs/nilfs2/
H A Dalloc.c584 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/ocfs2/
H A Dsuballoc.h136 struct buffer_head *bitmap_bh,
141 struct buffer_head *bitmap_bh,
H A Dlocalalloc.c53 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 Dsuballoc.c2946 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()