Lines Matching refs:ptr
59 __u64 ptr, struct buffer_head **bhp) in nilfs_btree_get_new_block() argument
65 bh = nilfs_btnode_create_block(btnc, ptr); in nilfs_btree_get_new_block()
156 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument
159 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr()
240 __u64 key, __u64 ptr, int ncmax) in nilfs_btree_node_insert() argument
256 dptrs[index] = cpu_to_le64(ptr); in nilfs_btree_node_insert()
266 __u64 ptr; in nilfs_btree_node_delete() local
274 ptr = le64_to_cpu(dptrs[index]); in nilfs_btree_node_delete()
279 *ptrp = ptr; in nilfs_btree_node_delete()
470 static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, in __nilfs_btree_get_block() argument
480 ret = nilfs_btnode_submit_block(btnc, ptr, 0, REQ_OP_READ, &bh, in __nilfs_btree_get_block()
524 btree->b_inode->i_ino, (unsigned long long)ptr); in __nilfs_btree_get_block()
540 static int nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, in nilfs_btree_get_block() argument
543 return __nilfs_btree_get_block(btree, ptr, bhp, NULL); in nilfs_btree_get_block()
553 __u64 ptr; in nilfs_btree_do_lookup() local
562 ptr = nilfs_btree_node_get_ptr(node, index, in nilfs_btree_do_lookup()
578 ret = __nilfs_btree_get_block(btree, ptr, &path[level].bp_bh, in nilfs_btree_do_lookup()
591 ptr = nilfs_btree_node_get_ptr(node, index, ncmax); in nilfs_btree_do_lookup()
595 ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_do_lookup()
603 *ptrp = ptr; in nilfs_btree_do_lookup()
613 __u64 ptr; in nilfs_btree_do_lookup_last() local
621 ptr = nilfs_btree_node_get_ptr(node, index, in nilfs_btree_do_lookup_last()
628 ret = nilfs_btree_get_block(btree, ptr, &path[level].bp_bh); in nilfs_btree_do_lookup_last()
635 ptr = nilfs_btree_node_get_ptr(node, index, ncmax); in nilfs_btree_do_lookup_last()
642 *ptrp = ptr; in nilfs_btree_do_lookup_last()
709 __u64 ptr, ptr2; in nilfs_btree_lookup_contig() local
719 ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level, 1); in nilfs_btree_lookup_contig()
725 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_btree_lookup_contig()
728 ptr = blocknr; in nilfs_btree_lookup_contig()
749 if (ptr2 != ptr + cnt || ++cnt == maxblocks) in nilfs_btree_lookup_contig()
779 *ptrp = ptr; in nilfs_btree_lookup_contig()
1040 __u64 ptr; in nilfs_btree_find_target_v() local
1042 ptr = nilfs_bmap_find_target_seq(btree, key); in nilfs_btree_find_target_v()
1043 if (ptr != NILFS_BMAP_INVALID_PTR) in nilfs_btree_find_target_v()
1045 return ptr; in nilfs_btree_find_target_v()
1047 ptr = nilfs_btree_find_near(btree, path); in nilfs_btree_find_target_v()
1048 if (ptr != NILFS_BMAP_INVALID_PTR) in nilfs_btree_find_target_v()
1050 return ptr; in nilfs_btree_find_target_v()
1058 int *levelp, __u64 key, __u64 ptr, in nilfs_btree_prepare_insert() argument
1207 int maxlevel, __u64 key, __u64 ptr) in nilfs_btree_commit_insert() argument
1212 set_buffer_nilfs_volatile((struct buffer_head *)((unsigned long)ptr)); in nilfs_btree_commit_insert()
1213 ptr = path[NILFS_BTREE_LEVEL_DATA].bp_newreq.bpr_ptr; in nilfs_btree_commit_insert()
1215 nilfs_bmap_set_target_v(btree, key, ptr); in nilfs_btree_commit_insert()
1222 path[level].bp_op(btree, path, level, &key, &ptr); in nilfs_btree_commit_insert()
1229 static int nilfs_btree_insert(struct nilfs_bmap *btree, __u64 key, __u64 ptr) in nilfs_btree_insert() argument
1247 ret = nilfs_btree_prepare_insert(btree, path, &level, key, ptr, &stats); in nilfs_btree_insert()
1250 nilfs_btree_commit_insert(btree, path, level, key, ptr); in nilfs_btree_insert()
1652 __u64 ptr; in nilfs_btree_check_delete() local
1665 ptr = nilfs_btree_node_get_ptr(root, nchildren - 1, in nilfs_btree_check_delete()
1667 ret = nilfs_btree_get_block(btree, ptr, &bh); in nilfs_btree_check_delete()
1692 __u64 ptr; in nilfs_btree_gather_data() local
1705 ptr = nilfs_btree_node_get_ptr(root, nchildren - 1, in nilfs_btree_gather_data()
1707 ret = nilfs_btree_get_block(btree, ptr, &bh); in nilfs_btree_gather_data()
1792 __u64 key, __u64 ptr, in nilfs_btree_commit_convert_and_insert() argument
1809 set_buffer_nilfs_volatile((struct buffer_head *)((unsigned long)ptr)); in nilfs_btree_commit_convert_and_insert()
1864 __u64 key, __u64 ptr, in nilfs_btree_convert_and_insert() argument
1889 nilfs_btree_commit_convert_and_insert(btree, key, ptr, keys, ptrs, n, in nilfs_btree_convert_and_insert()
2035 __u64 ptr; in nilfs_btree_propagate_v() local
2047 ptr = nilfs_btree_node_get_ptr(parent, in nilfs_btree_propagate_v()
2050 ret = nilfs_dat_mark_dirty(dat, ptr); in nilfs_btree_propagate_v()
2194 __u64 ptr; in nilfs_btree_assign_p() local
2198 ptr = nilfs_btree_node_get_ptr(parent, path[level + 1].bp_index, in nilfs_btree_assign_p()
2201 path[level].bp_ctxt.oldkey = ptr; in nilfs_btree_assign_p()
2236 __u64 ptr; in nilfs_btree_assign_v() local
2241 ptr = nilfs_btree_node_get_ptr(parent, path[level + 1].bp_index, in nilfs_btree_assign_v()
2243 req.bpr_ptr = ptr; in nilfs_btree_assign_v()
2251 binfo->bi_v.bi_vblocknr = cpu_to_le64(ptr); in nilfs_btree_assign_v()
2327 __u64 ptr; in nilfs_btree_mark() local
2334 ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level + 1, 0); in nilfs_btree_mark()
2339 ret = nilfs_btree_get_block(btree, ptr, &bh); in nilfs_btree_mark()