Lines Matching defs: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;
1607 if (ocfs2_free_list_at_root(lookup)) {
1608 bh = lookup->dl_dx_root_bh;
1613 bh = lookup->dl_prev_leaf_bh;
1680 lookup);
1709 ocfs2_recalc_free_list(dir, handle, lookup);
1964 struct ocfs2_dir_lookup_result *lookup)
1971 status = ocfs2_find_entry(name, namelen, inode, lookup);
1975 *blkno = le64_to_cpu(lookup->dl_entry->inode);
1991 struct ocfs2_dir_lookup_result lookup = { NULL, };
1993 ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &lookup);
1994 ocfs2_free_dir_lookup_result(&lookup);
2011 struct ocfs2_dir_lookup_result lookup = { NULL, };
2016 if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0) {
2021 ocfs2_free_dir_lookup_result(&lookup);
2764 struct ocfs2_dir_lookup_result *lookup,
3045 &lookup->dl_hinfo);
3047 lookup->dl_dx_leaf_bh = dx_leaves[off];
3049 lookup->dl_dx_root_bh = dx_root_bh;
3148 struct ocfs2_dir_lookup_result *lookup,
3163 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
3173 blocks_wanted, lookup,
3182 dx_root_bh = lookup->dl_dx_root_bh;
3881 struct ocfs2_dir_lookup_result *lookup)
3893 ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo,
3923 &lookup->dl_hinfo, leaf_cpos,
3932 * Restart the lookup. The rebalance might have
3942 lookup->dl_dx_leaf_bh = dx_leaf_bh;
3953 struct ocfs2_dir_lookup_result *lookup)
3978 lookup->dl_leaf_bh = leaf_bh;
3979 lookup->dl_prev_leaf_bh = prev_leaf_bh;
4133 struct ocfs2_dir_lookup_result *lookup)
4180 namelen, lookup);
4193 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup);
4200 lookup->dl_dx_root_bh = dx_root_bh;
4204 ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh);
4215 lookup->dl_prev_leaf_bh = NULL;
4216 lookup->dl_leaf_bh = leaf_bh;
4228 * lookup result that ocfs2_add_entry() will be able complete the task
4236 struct ocfs2_dir_lookup_result *lookup)
4257 ocfs2_dx_dir_name_hash(dir, name, namelen, &lookup->dl_hinfo);
4261 name, namelen, lookup);
4285 lookup, &bh);
4295 lookup->dl_leaf_bh = bh;