Home
last modified time | relevance | path

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

/linux-3.4.99/fs/ext3/
Dballoc.c494 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 …]
Dialloc.c84 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()
366 struct buffer_head *bitmap_bh = NULL; in ext3_new_inode() local
[all …]
Dinode.c2765 struct buffer_head *bitmap_bh; in __ext3_get_inode_loc() local
2786 bitmap_bh = sb_getblk(inode->i_sb, in __ext3_get_inode_loc()
2788 if (!bitmap_bh) in __ext3_get_inode_loc()
2796 if (!buffer_uptodate(bitmap_bh)) { in __ext3_get_inode_loc()
2797 brelse(bitmap_bh); in __ext3_get_inode_loc()
2803 if (ext3_test_bit(i, bitmap_bh->b_data)) in __ext3_get_inode_loc()
2806 brelse(bitmap_bh); in __ext3_get_inode_loc()
/linux-3.4.99/fs/ext2/
Dballoc.c490 struct buffer_head *bitmap_bh = NULL; in ext2_free_blocks() local
527 brelse(bitmap_bh); in ext2_free_blocks()
528 bitmap_bh = read_block_bitmap(sb, block_group); in ext2_free_blocks()
529 if (!bitmap_bh) in ext2_free_blocks()
551 bit + i, bitmap_bh->b_data)) { in ext2_free_blocks()
559 mark_buffer_dirty(bitmap_bh); in ext2_free_blocks()
561 sync_dirty_buffer(bitmap_bh); in ext2_free_blocks()
572 brelse(bitmap_bh); in ext2_free_blocks()
673 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument
709 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate()
[all …]
Dialloc.c109 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()
436 struct buffer_head *bitmap_bh = NULL; in ext2_new_inode() local
470 brelse(bitmap_bh); in ext2_new_inode()
471 bitmap_bh = read_inode_bitmap(sb, group); in ext2_new_inode()
[all …]
/linux-3.4.99/fs/nilfs2/
Dalloc.c408 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_alloc_entry() local
443 inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
446 bitmap_kaddr = kmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
447 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
458 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
461 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_alloc_entry()
464 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
465 brelse(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
583 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_free_entry() local
591 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry()
[all …]
/linux-3.4.99/fs/ext4/
Dialloc.c198 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local
250 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode()
251 if (!bitmap_bh) in ext4_free_inode()
254 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode()
255 fatal = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_inode()
266 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
294 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
295 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_inode()
303 brelse(bitmap_bh); in ext4_free_inode()
925 struct buffer_head *bitmap_bh; in ext4_orphan_get() local
[all …]
Dmballoc.c2730 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local
2745 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
2746 if (!bitmap_bh) in ext4_mb_mark_diskspace_used()
2749 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used()
2776 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2779 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2791 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
2795 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2824 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2831 brelse(bitmap_bh); in ext4_mb_mark_diskspace_used()
[all …]
Dballoc.c577 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_clusters() local
589 brelse(bitmap_bh); in ext4_count_free_clusters()
590 bitmap_bh = ext4_read_block_bitmap(sb, i); in ext4_count_free_clusters()
591 if (bitmap_bh == NULL) in ext4_count_free_clusters()
594 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_clusters()
600 brelse(bitmap_bh); in ext4_count_free_clusters()
Dinode.c3491 struct buffer_head *bitmap_bh; in __ext4_get_inode_loc() local
3497 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc()
3498 if (!bitmap_bh) in __ext4_get_inode_loc()
3506 if (!buffer_uptodate(bitmap_bh)) { in __ext4_get_inode_loc()
3507 brelse(bitmap_bh); in __ext4_get_inode_loc()
3513 if (ext4_test_bit(i, bitmap_bh->b_data)) in __ext4_get_inode_loc()
3516 brelse(bitmap_bh); in __ext4_get_inode_loc()
/linux-3.4.99/fs/ocfs2/
Dsuballoc.h131 struct buffer_head *bitmap_bh,
136 struct buffer_head *bitmap_bh,
Dlocalalloc.c69 struct buffer_head **bitmap_bh);
1078 struct buffer_head **bitmap_bh) in ocfs2_local_alloc_reserve_for_window() argument
1108 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window()
1109 get_bh(*bitmap_bh); in ocfs2_local_alloc_reserve_for_window()
Dsuballoc.c2538 struct buffer_head *bitmap_bh, in _ocfs2_free_clusters() argument
2556 fe = (struct ocfs2_dinode *) bitmap_bh->b_data; in _ocfs2_free_clusters()
2565 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2584 struct buffer_head *bitmap_bh, in ocfs2_free_clusters() argument
2588 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2599 struct buffer_head *bitmap_bh, in ocfs2_release_clusters() argument
2603 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()