/linux-4.1.27/fs/ext3/ |
D | balloc.c | 494 struct buffer_head *bitmap_bh = NULL; in ext3_free_blocks_sb() local 534 brelse(bitmap_bh); in ext3_free_blocks_sb() 535 bitmap_bh = read_block_bitmap(sb, block_group); in ext3_free_blocks_sb() 536 if (!bitmap_bh) in ext3_free_blocks_sb() 560 BUFFER_TRACE(bitmap_bh, "getting undo access"); in ext3_free_blocks_sb() 561 err = ext3_journal_get_undo_access(handle, bitmap_bh); in ext3_free_blocks_sb() 575 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb() 582 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb() 588 if (!bh2jh(bitmap_bh)->b_committed_data) in ext3_free_blocks_sb() 591 BUFFER_TRACE2(debug_bh, bitmap_bh, "bitmap"); in ext3_free_blocks_sb() [all …]
|
D | ialloc.c | 84 struct buffer_head *bitmap_bh = NULL; in ext3_free_inode() local 123 bitmap_bh = read_inode_bitmap(sb, block_group); in ext3_free_inode() 124 if (!bitmap_bh) in ext3_free_inode() 127 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext3_free_inode() 128 fatal = ext3_journal_get_write_access(handle, bitmap_bh); in ext3_free_inode() 134 bit, bitmap_bh->b_data)) in ext3_free_inode() 159 BUFFER_TRACE(bitmap_bh, "call ext3_journal_dirty_metadata"); in ext3_free_inode() 160 err = ext3_journal_dirty_metadata(handle, bitmap_bh); in ext3_free_inode() 165 brelse(bitmap_bh); in ext3_free_inode() 350 struct buffer_head *bitmap_bh = NULL; in ext3_new_inode() local [all …]
|
D | inode.c | 2729 struct buffer_head *bitmap_bh; in __ext3_get_inode_loc() local 2750 bitmap_bh = sb_getblk(inode->i_sb, in __ext3_get_inode_loc() 2752 if (unlikely(!bitmap_bh)) in __ext3_get_inode_loc() 2760 if (!buffer_uptodate(bitmap_bh)) { in __ext3_get_inode_loc() 2761 brelse(bitmap_bh); in __ext3_get_inode_loc() 2767 if (ext3_test_bit(i, bitmap_bh->b_data)) in __ext3_get_inode_loc() 2770 brelse(bitmap_bh); in __ext3_get_inode_loc()
|
/linux-4.1.27/fs/ext2/ |
D | ialloc.c | 108 struct buffer_head *bitmap_bh; in ext2_free_inode() local 135 bitmap_bh = read_inode_bitmap(sb, block_group); in ext2_free_inode() 136 if (!bitmap_bh) in ext2_free_inode() 141 bit, (void *) bitmap_bh->b_data)) in ext2_free_inode() 146 mark_buffer_dirty(bitmap_bh); in ext2_free_inode() 148 sync_dirty_buffer(bitmap_bh); in ext2_free_inode() 150 brelse(bitmap_bh); in ext2_free_inode() 434 struct buffer_head *bitmap_bh = NULL; in ext2_new_inode() local 468 brelse(bitmap_bh); in ext2_new_inode() 469 bitmap_bh = read_inode_bitmap(sb, group); in ext2_new_inode() [all …]
|
D | balloc.c | 479 struct buffer_head *bitmap_bh = NULL; in ext2_free_blocks() local 516 brelse(bitmap_bh); in ext2_free_blocks() 517 bitmap_bh = read_block_bitmap(sb, block_group); in ext2_free_blocks() 518 if (!bitmap_bh) in ext2_free_blocks() 540 bit + i, bitmap_bh->b_data)) { in ext2_free_blocks() 548 mark_buffer_dirty(bitmap_bh); in ext2_free_blocks() 550 sync_dirty_buffer(bitmap_bh); in ext2_free_blocks() 561 brelse(bitmap_bh); in ext2_free_blocks() 665 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument 701 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate() [all …]
|
/linux-4.1.27/fs/nilfs2/ |
D | alloc.c | 472 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_alloc_entry() local 507 inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 510 bitmap_kaddr = kmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry() 511 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 522 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry() 525 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_alloc_entry() 528 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry() 529 brelse(bitmap_bh); in nilfs_palloc_prepare_alloc_entry() 647 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_free_entry() local 655 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry() [all …]
|
/linux-4.1.27/fs/ext4/ |
D | ialloc.c | 233 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local 286 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode() 289 if (unlikely(EXT4_MB_GRP_IBITMAP_CORRUPT(grp)) || !bitmap_bh) in ext4_free_inode() 292 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode() 293 fatal = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_inode() 304 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode() 317 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode() 334 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode() 335 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_inode() 350 brelse(bitmap_bh); in ext4_free_inode() [all …]
|
D | mballoc.c | 2873 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local 2888 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used() 2889 if (!bitmap_bh) in ext4_mb_mark_diskspace_used() 2892 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used() 2893 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used() 2921 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used() 2924 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used() 2936 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used() 2940 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used() 2950 ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh); in ext4_mb_mark_diskspace_used() [all …]
|
D | balloc.c | 666 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_clusters() local 682 brelse(bitmap_bh); in ext4_count_free_clusters() 683 bitmap_bh = ext4_read_block_bitmap(sb, i); in ext4_count_free_clusters() 684 if (bitmap_bh == NULL) in ext4_count_free_clusters() 687 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_clusters() 693 brelse(bitmap_bh); in ext4_count_free_clusters()
|
D | inode.c | 3928 struct buffer_head *bitmap_bh; in __ext4_get_inode_loc() local 3934 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc() 3935 if (unlikely(!bitmap_bh)) in __ext4_get_inode_loc() 3943 if (!buffer_uptodate(bitmap_bh)) { in __ext4_get_inode_loc() 3944 brelse(bitmap_bh); in __ext4_get_inode_loc() 3950 if (ext4_test_bit(i, bitmap_bh->b_data)) in __ext4_get_inode_loc() 3953 brelse(bitmap_bh); in __ext4_get_inode_loc()
|
/linux-4.1.27/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); 1115 struct buffer_head **bitmap_bh) in ocfs2_local_alloc_reserve_for_window() argument 1145 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window() 1146 get_bh(*bitmap_bh); in ocfs2_local_alloc_reserve_for_window()
|
D | suballoc.c | 2549 struct buffer_head *bitmap_bh, in _ocfs2_free_clusters() argument 2567 fe = (struct ocfs2_dinode *) bitmap_bh->b_data; in _ocfs2_free_clusters() 2576 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters() 2595 struct buffer_head *bitmap_bh, in ocfs2_free_clusters() argument 2599 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters() 2610 struct buffer_head *bitmap_bh, in ocfs2_release_clusters() argument 2614 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()
|