/Linux-v4.19/fs/ext2/ |
D | balloc.c | 481 struct buffer_head *bitmap_bh = NULL; in ext2_free_blocks() local 518 brelse(bitmap_bh); in ext2_free_blocks() 519 bitmap_bh = read_block_bitmap(sb, block_group); in ext2_free_blocks() 520 if (!bitmap_bh) in ext2_free_blocks() 542 bit + i, bitmap_bh->b_data)) { in ext2_free_blocks() 550 mark_buffer_dirty(bitmap_bh); in ext2_free_blocks() 552 sync_dirty_buffer(bitmap_bh); in ext2_free_blocks() 563 brelse(bitmap_bh); in ext2_free_blocks() 667 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument 703 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate() [all …]
|
D | ialloc.c | 109 struct buffer_head *bitmap_bh; in ext2_free_inode() local 136 bitmap_bh = read_inode_bitmap(sb, block_group); in ext2_free_inode() 137 if (!bitmap_bh) in ext2_free_inode() 142 bit, (void *) bitmap_bh->b_data)) in ext2_free_inode() 147 mark_buffer_dirty(bitmap_bh); in ext2_free_inode() 149 sync_dirty_buffer(bitmap_bh); in ext2_free_inode() 151 brelse(bitmap_bh); in ext2_free_inode() 435 struct buffer_head *bitmap_bh = NULL; in ext2_new_inode() local 474 brelse(bitmap_bh); in ext2_new_inode() 475 bitmap_bh = read_inode_bitmap(sb, group); in ext2_new_inode() [all …]
|
/Linux-v4.19/fs/nilfs2/ |
D | alloc.c | 501 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_alloc_entry() local 536 inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 539 bitmap_kaddr = kmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry() 540 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 551 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry() 554 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_alloc_entry() 557 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry() 558 brelse(bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 683 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_free_entry() local 691 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry() [all …]
|
/Linux-v4.19/fs/ext4/ |
D | ialloc.c | 236 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local 288 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode() 291 if (IS_ERR(bitmap_bh)) { in ext4_free_inode() 292 fatal = PTR_ERR(bitmap_bh); in ext4_free_inode() 293 bitmap_bh = NULL; in ext4_free_inode() 301 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode() 302 fatal = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_inode() 313 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode() 326 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode() 343 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode() [all …]
|
D | mballoc.c | 2924 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local 2938 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used() 2939 if (IS_ERR(bitmap_bh)) { in ext4_mb_mark_diskspace_used() 2940 err = PTR_ERR(bitmap_bh); in ext4_mb_mark_diskspace_used() 2941 bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() 2945 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used() 2946 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used() 2974 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used() 2977 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used() 2989 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used() [all …]
|
D | balloc.c | 688 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_clusters() local 704 brelse(bitmap_bh); in ext4_count_free_clusters() 705 bitmap_bh = ext4_read_block_bitmap(sb, i); in ext4_count_free_clusters() 706 if (IS_ERR(bitmap_bh)) { in ext4_count_free_clusters() 707 bitmap_bh = NULL; in ext4_count_free_clusters() 711 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_clusters() 717 brelse(bitmap_bh); in ext4_count_free_clusters()
|
D | inode.c | 4593 struct buffer_head *bitmap_bh; in __ext4_get_inode_loc() local 4599 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc() 4600 if (unlikely(!bitmap_bh)) in __ext4_get_inode_loc() 4608 if (!buffer_uptodate(bitmap_bh)) { in __ext4_get_inode_loc() 4609 brelse(bitmap_bh); in __ext4_get_inode_loc() 4615 if (ext4_test_bit(i, bitmap_bh->b_data)) in __ext4_get_inode_loc() 4618 brelse(bitmap_bh); in __ext4_get_inode_loc()
|
/Linux-v4.19/fs/ocfs2/ |
D | suballoc.h | 147 struct buffer_head *bitmap_bh, 152 struct buffer_head *bitmap_bh,
|
D | localalloc.c | 69 struct buffer_head **bitmap_bh); 1111 struct buffer_head **bitmap_bh) in ocfs2_local_alloc_reserve_for_window() argument 1141 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window() 1142 get_bh(*bitmap_bh); in ocfs2_local_alloc_reserve_for_window()
|
D | suballoc.c | 2557 struct buffer_head *bitmap_bh, in _ocfs2_free_clusters() argument 2584 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters() 2603 struct buffer_head *bitmap_bh, in ocfs2_free_clusters() argument 2607 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters() 2618 struct buffer_head *bitmap_bh, in ocfs2_release_clusters() argument 2622 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()
|