Home
last modified time | relevance | path

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

/fs/ext2/
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 …]
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 …]
/fs/nilfs2/
Dalloc.c506 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_alloc_entry() local
541 inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
544 bitmap_kaddr = kmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
545 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
562 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
565 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_alloc_entry()
568 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
569 brelse(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
694 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_free_entry() local
702 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry()
[all …]
/fs/ext4/
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()
350 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
[all …]
Dmballoc.c3996 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local
4010 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
4011 if (IS_ERR(bitmap_bh)) { in ext4_mb_mark_diskspace_used()
4012 return PTR_ERR(bitmap_bh); in ext4_mb_mark_diskspace_used()
4015 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used()
4016 err = ext4_journal_get_write_access(handle, sb, bitmap_bh, in ext4_mb_mark_diskspace_used()
4045 mb_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
4048 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
4060 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
4064 mb_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
[all …]
Dballoc.c773 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_clusters() local
789 brelse(bitmap_bh); in ext4_count_free_clusters()
790 bitmap_bh = ext4_read_block_bitmap(sb, i); in ext4_count_free_clusters()
791 if (IS_ERR(bitmap_bh)) { in ext4_count_free_clusters()
792 bitmap_bh = NULL; in ext4_count_free_clusters()
796 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_clusters()
802 brelse(bitmap_bh); in ext4_count_free_clusters()
Dinode.c4438 struct buffer_head *bitmap_bh; in __ext4_get_inode_loc() local
4444 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc()
4445 if (unlikely(!bitmap_bh)) in __ext4_get_inode_loc()
4453 if (!buffer_uptodate(bitmap_bh)) { in __ext4_get_inode_loc()
4454 brelse(bitmap_bh); in __ext4_get_inode_loc()
4460 if (ext4_test_bit(i, bitmap_bh->b_data)) in __ext4_get_inode_loc()
4463 brelse(bitmap_bh); in __ext4_get_inode_loc()
/fs/ocfs2/
Dsuballoc.h131 struct buffer_head *bitmap_bh,
136 struct buffer_head *bitmap_bh,
Dlocalalloc.c53 struct buffer_head **bitmap_bh);
1099 struct buffer_head **bitmap_bh) in ocfs2_local_alloc_reserve_for_window() argument
1129 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window()
1130 get_bh(*bitmap_bh); in ocfs2_local_alloc_reserve_for_window()
Dsuballoc.c2542 struct buffer_head *bitmap_bh, in _ocfs2_free_clusters() argument
2569 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2586 struct buffer_head *bitmap_bh, in ocfs2_free_clusters() argument
2590 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2601 struct buffer_head *bitmap_bh, in ocfs2_release_clusters() argument
2605 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()