Lines Matching refs:lookup
1013 struct ocfs2_dir_lookup_result *lookup)
1036 ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup);
1043 lookup->dl_dx_root_bh = dx_root_bh;
1066 struct inode *dir, struct ocfs2_dir_lookup_result *lookup)
1072 return ocfs2_find_entry_dx(name, namelen, dir, lookup);
1075 * The unindexed dir code only uses part of the lookup
1087 lookup->dl_leaf_bh = bh;
1088 lookup->dl_entry = res_dir;
1238 struct ocfs2_dir_lookup_result *lookup)
1241 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1242 struct buffer_head *leaf_bh = lookup->dl_leaf_bh;
1244 struct ocfs2_dx_entry *dx_entry = lookup->dl_dx_entry;
1264 dx_leaf = (struct ocfs2_dx_leaf *) lookup->dl_dx_leaf_bh->b_data;
1269 * been caught by lookup, before we got here. */
1312 lookup->dl_dx_leaf_bh,
1323 ret = __ocfs2_delete_entry(handle, dir, lookup->dl_entry,
1347 ocfs2_journal_dirty(handle, lookup->dl_dx_leaf_bh);
1494 struct ocfs2_dir_lookup_result *lookup)
1498 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1507 dx_root = (struct ocfs2_dx_root_block *)lookup->dl_dx_root_bh->b_data;
1510 &lookup->dl_hinfo,
1511 lookup->dl_leaf_bh->b_blocknr,
1514 ret = __ocfs2_dx_dir_leaf_insert(dir, handle, &lookup->dl_hinfo,
1515 lookup->dl_leaf_bh->b_blocknr,
1516 lookup->dl_dx_leaf_bh);
1530 struct ocfs2_dir_lookup_result *lookup)
1536 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1538 if (ocfs2_free_list_at_root(lookup)) {
1539 bh = lookup->dl_dx_root_bh;
1543 bh = lookup->dl_prev_leaf_bh;
1552 ocfs2_journal_dirty(handle, lookup->dl_leaf_bh);
1557 * lookup->dl_prev_leaf_bh or lookup->dl_dx_root_bh
1560 struct ocfs2_dir_lookup_result *lookup)
1566 max_rec_len = ocfs2_find_max_rec_len(dir->i_sb, lookup->dl_leaf_bh);
1573 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1575 ocfs2_journal_dirty(handle, lookup->dl_leaf_bh);
1577 ocfs2_remove_block_from_free_list(dir, handle, lookup);
1584 * The lookup context must have been filled from
1592 struct ocfs2_dir_lookup_result *lookup)
1601 struct buffer_head *insert_bh = lookup->dl_leaf_bh;
1618 if (ocfs2_free_list_at_root(lookup)) {
1619 bh = lookup->dl_dx_root_bh;
1624 bh = lookup->dl_prev_leaf_bh;
1691 lookup);
1720 ocfs2_recalc_free_list(dir, handle, lookup);
1977 struct ocfs2_dir_lookup_result *lookup)
1984 status = ocfs2_find_entry(name, namelen, inode, lookup);
1988 *blkno = le64_to_cpu(lookup->dl_entry->inode);
2004 struct ocfs2_dir_lookup_result lookup = { NULL, };
2006 ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &lookup);
2007 ocfs2_free_dir_lookup_result(&lookup);
2024 struct ocfs2_dir_lookup_result lookup = { NULL, };
2029 if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0) {
2034 ocfs2_free_dir_lookup_result(&lookup);
2777 struct ocfs2_dir_lookup_result *lookup,
3058 &lookup->dl_hinfo);
3060 lookup->dl_dx_leaf_bh = dx_leaves[off];
3062 lookup->dl_dx_root_bh = dx_root_bh;
3161 struct ocfs2_dir_lookup_result *lookup,
3176 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
3186 blocks_wanted, lookup,
3195 dx_root_bh = lookup->dl_dx_root_bh;
3897 struct ocfs2_dir_lookup_result *lookup)
3909 ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo,
3939 &lookup->dl_hinfo, leaf_cpos,
3948 * Restart the lookup. The rebalance might have
3958 lookup->dl_dx_leaf_bh = dx_leaf_bh;
3969 struct ocfs2_dir_lookup_result *lookup)
3994 lookup->dl_leaf_bh = leaf_bh;
3995 lookup->dl_prev_leaf_bh = prev_leaf_bh;
4149 struct ocfs2_dir_lookup_result *lookup)
4196 namelen, lookup);
4209 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup);
4216 lookup->dl_dx_root_bh = dx_root_bh;
4220 ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh);
4231 lookup->dl_prev_leaf_bh = NULL;
4232 lookup->dl_leaf_bh = leaf_bh;
4244 * lookup result that ocfs2_add_entry() will be able complete the task
4252 struct ocfs2_dir_lookup_result *lookup)
4279 ocfs2_dx_dir_name_hash(dir, name, namelen, &lookup->dl_hinfo);
4283 name, namelen, lookup);
4307 lookup, &bh);
4317 lookup->dl_leaf_bh = bh;