Lines Matching refs:ptr
30 __u64 key, __u64 ptr)
32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr);
38 __u64 ptr;
42 ptr = nilfs_direct_get_ptr(direct, key);
43 if (ptr == NILFS_BMAP_INVALID_PTR)
46 *ptrp = ptr;
55 __u64 ptr, ptr2;
61 ptr = nilfs_direct_get_ptr(direct, key);
62 if (ptr == NILFS_BMAP_INVALID_PTR)
67 ret = nilfs_dat_translate(dat, ptr, &blocknr);
70 ptr = blocknr;
85 if (ptr2 != ptr + cnt)
88 *ptrp = ptr;
95 __u64 ptr;
97 ptr = nilfs_bmap_find_target_seq(direct, key);
98 if (ptr != NILFS_BMAP_INVALID_PTR)
100 return ptr;
106 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr)
124 /* ptr must be a pointer to a buffer head. */
125 bh = (struct buffer_head *)((unsigned long)ptr);
206 __u64 ptr;
213 ptr = nilfs_direct_get_ptr(direct, key);
214 if (ptr != NILFS_BMAP_INVALID_PTR) {
216 ptrs[n] = ptr;
262 __u64 ptr;
270 ptr = nilfs_direct_get_ptr(bmap, key);
272 oldreq.pr_entry_nr = ptr;
273 newreq.pr_entry_nr = ptr;
282 ret = nilfs_dat_mark_dirty(dat, ptr);
288 __u64 key, __u64 ptr,
297 req.bpr_ptr = ptr;
301 binfo->bi_v.bi_vblocknr = cpu_to_le64(ptr);
308 __u64 key, __u64 ptr,
327 __u64 ptr;
337 ptr = nilfs_direct_get_ptr(bmap, key);
338 if (unlikely(ptr == NILFS_BMAP_INVALID_PTR)) {
342 bmap->b_inode->i_ino, (unsigned long long)ptr);
347 nilfs_direct_assign_v(bmap, key, ptr, bh, blocknr, binfo) :
348 nilfs_direct_assign_p(bmap, key, ptr, bh, blocknr, binfo);