Lines Matching refs:lookup
1005 struct ocfs2_dir_lookup_result *lookup)
1028 ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup);
1035 lookup->dl_dx_root_bh = dx_root_bh;
1058 struct inode *dir, struct ocfs2_dir_lookup_result *lookup)
1064 return ocfs2_find_entry_dx(name, namelen, dir, lookup);
1067 * The unindexed dir code only uses part of the lookup
1079 lookup->dl_leaf_bh = bh;
1080 lookup->dl_entry = res_dir;
1230 struct ocfs2_dir_lookup_result *lookup)
1233 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1234 struct buffer_head *leaf_bh = lookup->dl_leaf_bh;
1236 struct ocfs2_dx_entry *dx_entry = lookup->dl_dx_entry;
1256 dx_leaf = (struct ocfs2_dx_leaf *) lookup->dl_dx_leaf_bh->b_data;
1261 * been caught by lookup, before we got here. */
1304 lookup->dl_dx_leaf_bh,
1315 ret = __ocfs2_delete_entry(handle, dir, lookup->dl_entry,
1339 ocfs2_journal_dirty(handle, lookup->dl_dx_leaf_bh);
1486 struct ocfs2_dir_lookup_result *lookup)
1490 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1499 dx_root = (struct ocfs2_dx_root_block *)lookup->dl_dx_root_bh->b_data;
1502 &lookup->dl_hinfo,
1503 lookup->dl_leaf_bh->b_blocknr,
1506 ret = __ocfs2_dx_dir_leaf_insert(dir, handle, &lookup->dl_hinfo,
1507 lookup->dl_leaf_bh->b_blocknr,
1508 lookup->dl_dx_leaf_bh);
1522 struct ocfs2_dir_lookup_result *lookup)
1528 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1530 if (ocfs2_free_list_at_root(lookup)) {
1531 bh = lookup->dl_dx_root_bh;
1535 bh = lookup->dl_prev_leaf_bh;
1544 ocfs2_journal_dirty(handle, lookup->dl_leaf_bh);
1549 * lookup->dl_prev_leaf_bh or lookup->dl_dx_root_bh
1552 struct ocfs2_dir_lookup_result *lookup)
1558 max_rec_len = ocfs2_find_max_rec_len(dir->i_sb, lookup->dl_leaf_bh);
1565 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1567 ocfs2_journal_dirty(handle, lookup->dl_leaf_bh);
1569 ocfs2_remove_block_from_free_list(dir, handle, lookup);
1576 * The lookup context must have been filled from
1584 struct ocfs2_dir_lookup_result *lookup)
1593 struct buffer_head *insert_bh = lookup->dl_leaf_bh;
1610 if (ocfs2_free_list_at_root(lookup)) {
1611 bh = lookup->dl_dx_root_bh;
1616 bh = lookup->dl_prev_leaf_bh;
1682 lookup);
1711 ocfs2_recalc_free_list(dir, handle, lookup);
1966 struct ocfs2_dir_lookup_result *lookup)
1973 status = ocfs2_find_entry(name, namelen, inode, lookup);
1977 *blkno = le64_to_cpu(lookup->dl_entry->inode);
1993 struct ocfs2_dir_lookup_result lookup = { NULL, };
1995 ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &lookup);
1996 ocfs2_free_dir_lookup_result(&lookup);
2013 struct ocfs2_dir_lookup_result lookup = { NULL, };
2018 if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0) {
2023 ocfs2_free_dir_lookup_result(&lookup);
2766 struct ocfs2_dir_lookup_result *lookup,
3047 &lookup->dl_hinfo);
3049 lookup->dl_dx_leaf_bh = dx_leaves[off];
3051 lookup->dl_dx_root_bh = dx_root_bh;
3150 struct ocfs2_dir_lookup_result *lookup,
3165 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
3175 blocks_wanted, lookup,
3184 dx_root_bh = lookup->dl_dx_root_bh;
3883 struct ocfs2_dir_lookup_result *lookup)
3895 ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo,
3925 &lookup->dl_hinfo, leaf_cpos,
3934 * Restart the lookup. The rebalance might have
3944 lookup->dl_dx_leaf_bh = dx_leaf_bh;
3955 struct ocfs2_dir_lookup_result *lookup)
3980 lookup->dl_leaf_bh = leaf_bh;
3981 lookup->dl_prev_leaf_bh = prev_leaf_bh;
4135 struct ocfs2_dir_lookup_result *lookup)
4182 namelen, lookup);
4195 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup);
4202 lookup->dl_dx_root_bh = dx_root_bh;
4206 ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh);
4217 lookup->dl_prev_leaf_bh = NULL;
4218 lookup->dl_leaf_bh = leaf_bh;
4230 * lookup result that ocfs2_add_entry() will be able complete the task
4238 struct ocfs2_dir_lookup_result *lookup)
4265 ocfs2_dx_dir_name_hash(dir, name, namelen, &lookup->dl_hinfo);
4269 name, namelen, lookup);
4293 lookup, &bh);
4303 lookup->dl_leaf_bh = bh;