Lines Matching refs:buffer_head
78 struct buffer_head *parent_fe_bh,
81 struct buffer_head **new_bh);
153 struct buffer_head *bh, u16 rec_len) in ocfs2_init_dir_trailer()
171 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_link_trailer()
172 struct buffer_head *dirdata_bh) in ocfs2_dx_dir_link_trailer()
318 struct buffer_head * bh, in ocfs2_check_dir_entry()
358 static inline int ocfs2_search_dirblock(struct buffer_head *bh, in ocfs2_search_dirblock()
408 static struct buffer_head *ocfs2_find_entry_id(const char *name, in ocfs2_find_entry_id()
414 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id()
438 struct buffer_head *bh) in ocfs2_validate_dir_block()
476 static int ocfs2_check_dir_trailer(struct inode *dir, struct buffer_head *bh) in ocfs2_check_dir_trailer()
523 struct buffer_head **bh, int flags) in ocfs2_read_dir_block()
526 struct buffer_head *tmp = *bh; in ocfs2_read_dir_block()
560 struct buffer_head **bh) in ocfs2_read_dir_block_direct()
563 struct buffer_head *tmp = *bh; in ocfs2_read_dir_block_direct()
589 struct buffer_head *bh) in ocfs2_validate_dx_root()
618 struct buffer_head **dx_root_bh) in ocfs2_read_dx_root()
622 struct buffer_head *tmp = *dx_root_bh; in ocfs2_read_dx_root()
635 struct buffer_head *bh) in ocfs2_validate_dx_leaf()
660 struct buffer_head **dx_leaf_bh) in ocfs2_read_dx_leaf()
663 struct buffer_head *tmp = *dx_leaf_bh; in ocfs2_read_dx_leaf()
680 struct buffer_head **dx_leaf_bhs) in ocfs2_read_dx_leaves()
692 static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen, in ocfs2_find_entry_el()
697 struct buffer_head *bh_use[NAMEI_RA_SIZE]; in ocfs2_find_entry_el()
698 struct buffer_head *bh, *ret = NULL; in ocfs2_find_entry_el()
799 struct buffer_head *eb_bh = NULL; in ocfs2_dx_dir_lookup_rec()
925 struct buffer_head *dx_leaf_bh = NULL; in ocfs2_dx_dir_search()
928 struct buffer_head *dir_ent_bh = NULL; in ocfs2_dx_dir_search()
1037 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx()
1039 struct buffer_head *dx_root_bh = NULL; in ocfs2_find_entry_dx()
1089 struct buffer_head *bh; in ocfs2_find_entry()
1123 struct buffer_head *de_bh = res->dl_leaf_bh; in ocfs2_update_entry()
1156 struct buffer_head *bh, char *first_de, in __ocfs2_delete_entry()
1213 struct buffer_head *dirblock_bh) in ocfs2_find_max_rec_len()
1262 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx()
1263 struct buffer_head *leaf_bh = lookup->dl_leaf_bh; in ocfs2_delete_entry_dx()
1377 struct buffer_head *bh) in ocfs2_delete_entry_id()
1380 struct buffer_head *di_bh = NULL; in ocfs2_delete_entry_id()
1404 struct buffer_head *bh) in ocfs2_delete_entry_el()
1486 struct buffer_head *dx_leaf_bh) in __ocfs2_dx_dir_leaf_insert()
1519 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert()
1555 struct buffer_head *bh; in ocfs2_remove_block_from_free_list()
1612 struct buffer_head *parent_fe_bh, in __ocfs2_add_entry()
1622 struct buffer_head *insert_bh = lookup->dl_leaf_bh; in __ocfs2_add_entry()
1629 struct buffer_head *bh; in __ocfs2_add_entry()
1768 struct buffer_head *di_bh = NULL; in ocfs2_dir_foreach_blk_id()
1842 struct buffer_head * bh, * tmp; in ocfs2_dir_foreach_blk_el()
2114 struct buffer_head *di_bh = NULL; in ocfs2_empty_dir_dx()
2115 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx()
2221 struct buffer_head *di_bh) in ocfs2_fill_new_dir_id()
2254 struct buffer_head *fe_bh, in ocfs2_fill_new_dir_el()
2256 struct buffer_head **ret_new_bh) in ocfs2_fill_new_dir_el()
2260 struct buffer_head *new_bh = NULL; in ocfs2_fill_new_dir_el()
2322 struct buffer_head *di_bh, in ocfs2_dx_dir_attach_index()
2323 struct buffer_head *dirdata_bh, in ocfs2_dx_dir_attach_index()
2326 struct buffer_head **ret_dx_root_bh) in ocfs2_dx_dir_attach_index()
2333 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2414 struct buffer_head **dx_leaves, in ocfs2_dx_dir_format_cluster()
2419 struct buffer_head *bh; in ocfs2_dx_dir_format_cluster()
2468 struct buffer_head **dx_leaves, in __ocfs2_dx_dir_new_cluster()
2510 struct buffer_head **dx_leaves, in ocfs2_dx_dir_new_cluster()
2531 static struct buffer_head **ocfs2_dx_dir_kmalloc_leaves(struct super_block *sb, in ocfs2_dx_dir_kmalloc_leaves()
2535 struct buffer_head **dx_leaves; in ocfs2_dx_dir_kmalloc_leaves()
2537 dx_leaves = kcalloc(num_dx_leaves, sizeof(struct buffer_head *), in ocfs2_dx_dir_kmalloc_leaves()
2549 struct buffer_head *di_bh, in ocfs2_fill_new_dir_dx()
2554 struct buffer_head *leaf_bh = NULL; in ocfs2_fill_new_dir_dx()
2555 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx()
2604 struct buffer_head *fe_bh, in ocfs2_fill_new_dir()
2624 struct buffer_head **dx_leaves, in ocfs2_dx_dir_index_block()
2627 struct buffer_head *dirent_bh) in ocfs2_dx_dir_index_block()
2632 struct buffer_head *dx_leaf_bh; in ocfs2_dx_dir_index_block()
2672 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block()
2673 struct buffer_head *dirent_bh) in ocfs2_dx_dir_index_root_block()
2715 struct buffer_head *di_bh) in ocfs2_new_dx_should_be_inline()
2802 static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, in ocfs2_expand_inline_dir()
2805 struct buffer_head **first_block_bh) in ocfs2_expand_inline_dir()
2817 struct buffer_head *dirdata_bh = NULL; in ocfs2_expand_inline_dir()
2818 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir()
2819 struct buffer_head **dx_leaves = NULL; in ocfs2_expand_inline_dir()
3122 struct buffer_head *parent_fe_bh, in ocfs2_do_extend_dir()
3125 struct buffer_head **new_bh) in ocfs2_do_extend_dir()
3186 struct buffer_head *parent_fe_bh, in ocfs2_extend_dir()
3189 struct buffer_head **new_de_bh) in ocfs2_extend_dir()
3199 struct buffer_head *new_bh = NULL; in ocfs2_extend_dir()
3203 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3373 static int ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, in ocfs2_find_dir_space_id()
3375 struct buffer_head **ret_de_bh, in ocfs2_find_dir_space_id()
3445 int namelen, struct buffer_head **ret_de_bh) in ocfs2_find_dir_space_el()
3448 struct buffer_head *bh = NULL; in ocfs2_find_dir_space_el()
3671 struct buffer_head **orig_dx_leaves, in ocfs2_dx_dir_transfer_leaf()
3672 struct buffer_head **new_dx_leaves, in ocfs2_dx_dir_transfer_leaf()
3727 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance()
3728 struct buffer_head *dx_leaf_bh, in ocfs2_dx_dir_rebalance()
3737 struct buffer_head **orig_dx_leaves = NULL; in ocfs2_dx_dir_rebalance()
3738 struct buffer_head **new_dx_leaves = NULL; in ocfs2_dx_dir_rebalance()
3922 struct buffer_head *di_bh, in ocfs2_find_dir_space_dx()
3923 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx()
3929 struct buffer_head *dx_leaf_bh = NULL; in ocfs2_find_dir_space_dx()
3995 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list()
4000 struct buffer_head *leaf_bh = NULL, *prev_leaf_bh = NULL; in ocfs2_search_dx_free_list()
4043 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root()
4046 struct buffer_head **dx_leaves = NULL; in ocfs2_expand_inline_dx_root()
4158 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space()
4174 struct buffer_head *di_bh, in ocfs2_prepare_dx_dir_for_insert()
4181 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert()
4182 struct buffer_head *leaf_bh = NULL; in ocfs2_prepare_dx_dir_for_insert()
4277 struct buffer_head *parent_fe_bh, in ocfs2_prepare_dir_for_insert()
4284 struct buffer_head *bh = NULL; in ocfs2_prepare_dir_for_insert()
4353 struct buffer_head *di_bh, in ocfs2_dx_dir_remove_index()
4354 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index()
4361 struct buffer_head *dx_alloc_bh = NULL; in ocfs2_dx_dir_remove_index()
4433 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) in ocfs2_dx_dir_truncate()
4440 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate()