Lines Matching refs:di_bh

397 	struct buffer_head *di_bh = NULL;  in ocfs2_find_entry_id()  local
401 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id()
407 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
410 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id()
413 return di_bh; in ocfs2_find_entry_id()
415 brelse(di_bh); in ocfs2_find_entry_id()
1010 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local
1015 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx()
1021 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1040 brelse(di_bh); in ocfs2_find_entry_dx()
1353 struct buffer_head *di_bh = NULL; in ocfs2_delete_entry_id() local
1357 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_delete_entry_id()
1363 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_delete_entry_id()
1369 brelse(di_bh); in ocfs2_delete_entry_id()
1741 struct buffer_head *di_bh = NULL; in ocfs2_dir_foreach_blk_id() local
1746 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_dir_foreach_blk_id()
1753 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dir_foreach_blk_id()
1781 if (!ocfs2_check_dir_entry(inode, de, di_bh, ctx->pos)) { in ocfs2_dir_foreach_blk_id()
1796 brelse(di_bh); in ocfs2_dir_foreach_blk_id()
2078 struct buffer_head *di_bh = NULL; in ocfs2_empty_dir_dx() local
2085 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_empty_dir_dx()
2090 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_empty_dir_dx()
2103 brelse(di_bh); in ocfs2_empty_dir_dx()
2185 struct buffer_head *di_bh) in ocfs2_fill_new_dir_id() argument
2188 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fill_new_dir_id()
2192 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_fill_new_dir_id()
2200 ocfs2_journal_dirty(handle, di_bh); in ocfs2_fill_new_dir_id()
2206 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in ocfs2_fill_new_dir_id()
2286 struct buffer_head *di_bh, in ocfs2_dx_dir_attach_index() argument
2293 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_dx_dir_attach_index()
2352 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_attach_index()
2366 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_attach_index()
2513 struct buffer_head *di_bh, in ocfs2_fill_new_dir_dx() argument
2535 ret = ocfs2_fill_new_dir_el(osb, handle, parent, inode, di_bh, in ocfs2_fill_new_dir_dx()
2542 ret = ocfs2_dx_dir_attach_index(osb, handle, inode, di_bh, leaf_bh, in ocfs2_fill_new_dir_dx()
2679 struct buffer_head *di_bh) in ocfs2_new_dx_should_be_inline() argument
2684 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_new_dx_should_be_inline()
2766 static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, in ocfs2_expand_inline_dir() argument
2784 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_expand_inline_dir()
2790 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), di_bh); in ocfs2_expand_inline_dir()
2800 dx_inline = ocfs2_new_dx_should_be_inline(dir, di_bh); in ocfs2_expand_inline_dir()
2952 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_expand_inline_dir()
2991 ocfs2_journal_dirty(handle, di_bh); in ocfs2_expand_inline_dir()
2994 ret = ocfs2_dx_dir_attach_index(osb, handle, dir, di_bh, in ocfs2_expand_inline_dir()
3337 static int ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, in ocfs2_find_dir_space_id() argument
3344 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_dir_space_id()
3366 if (!ocfs2_check_dir_entry(dir, de, di_bh, offset)) { in ocfs2_find_dir_space_id()
3382 *ret_de_bh = di_bh; in ocfs2_find_dir_space_id()
3882 struct buffer_head *di_bh, in ocfs2_find_dir_space_dx() argument
4134 struct buffer_head *di_bh, in ocfs2_prepare_dx_dir_for_insert() argument
4143 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4183 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4208 ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh); in ocfs2_prepare_dx_dir_for_insert()
4313 struct buffer_head *di_bh, in ocfs2_dx_dir_remove_index() argument
4318 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dx_dir_remove_index()
4352 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_remove_index()
4366 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_remove_index()
4393 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) in ocfs2_dx_dir_truncate() argument
4402 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dx_dir_truncate()
4448 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()