Home
last modified time | relevance | path

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

/linux-4.4.14/fs/ext2/
Dialloc.c108 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 …]
Dballoc.c479 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.4.14/fs/ext4/
Dialloc.c258 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local
311 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode()
314 if (IS_ERR(bitmap_bh)) { in ext4_free_inode()
315 fatal = PTR_ERR(bitmap_bh); in ext4_free_inode()
316 bitmap_bh = NULL; in ext4_free_inode()
324 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode()
325 fatal = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_inode()
336 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
349 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
366 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
[all …]
Dmballoc.c2889 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local
2903 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
2904 if (IS_ERR(bitmap_bh)) { in ext4_mb_mark_diskspace_used()
2905 err = PTR_ERR(bitmap_bh); in ext4_mb_mark_diskspace_used()
2906 bitmap_bh = NULL; in ext4_mb_mark_diskspace_used()
2910 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used()
2911 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used()
2939 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2942 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2954 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
[all …]
Dballoc.c673 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_clusters() local
689 brelse(bitmap_bh); in ext4_count_free_clusters()
690 bitmap_bh = ext4_read_block_bitmap(sb, i); in ext4_count_free_clusters()
691 if (IS_ERR(bitmap_bh)) { in ext4_count_free_clusters()
692 bitmap_bh = NULL; in ext4_count_free_clusters()
696 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_clusters()
702 brelse(bitmap_bh); in ext4_count_free_clusters()
Dinode.c3970 struct buffer_head *bitmap_bh; in __ext4_get_inode_loc() local
3976 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc()
3977 if (unlikely(!bitmap_bh)) in __ext4_get_inode_loc()
3985 if (!buffer_uptodate(bitmap_bh)) { in __ext4_get_inode_loc()
3986 brelse(bitmap_bh); in __ext4_get_inode_loc()
3992 if (ext4_test_bit(i, bitmap_bh->b_data)) in __ext4_get_inode_loc()
3995 brelse(bitmap_bh); in __ext4_get_inode_loc()
/linux-4.4.14/fs/nilfs2/
Dalloc.c511 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_alloc_entry() local
546 inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
549 bitmap_kaddr = kmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
550 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
561 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
564 req->pr_bitmap_bh = bitmap_bh; in nilfs_palloc_prepare_alloc_entry()
567 kunmap(bitmap_bh->b_page); in nilfs_palloc_prepare_alloc_entry()
568 brelse(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
693 struct buffer_head *desc_bh, *bitmap_bh; in nilfs_palloc_prepare_free_entry() local
701 ret = nilfs_palloc_get_bitmap_block(inode, group, 1, &bitmap_bh); in nilfs_palloc_prepare_free_entry()
[all …]
/linux-4.4.14/fs/ocfs2/
Dsuballoc.h147 struct buffer_head *bitmap_bh,
152 struct buffer_head *bitmap_bh,
Dlocalalloc.c69 struct buffer_head **bitmap_bh);
1114 struct buffer_head **bitmap_bh) in ocfs2_local_alloc_reserve_for_window() argument
1144 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window()
1145 get_bh(*bitmap_bh); in ocfs2_local_alloc_reserve_for_window()
Dsuballoc.c2532 struct buffer_head *bitmap_bh, in _ocfs2_free_clusters() argument
2550 fe = (struct ocfs2_dinode *) bitmap_bh->b_data; in _ocfs2_free_clusters()
2559 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2578 struct buffer_head *bitmap_bh, in ocfs2_free_clusters() argument
2582 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2593 struct buffer_head *bitmap_bh, in ocfs2_release_clusters() argument
2597 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()