Lines Matching refs:direct
17 static inline __le64 *nilfs_direct_dptrs(const struct nilfs_bmap *direct) in nilfs_direct_dptrs() argument
20 ((struct nilfs_direct_node *)direct->b_u.u_data + 1); in nilfs_direct_dptrs()
24 nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) in nilfs_direct_get_ptr() argument
26 return le64_to_cpu(*(nilfs_direct_dptrs(direct) + key)); in nilfs_direct_get_ptr()
29 static inline void nilfs_direct_set_ptr(struct nilfs_bmap *direct, in nilfs_direct_set_ptr() argument
32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
35 static int nilfs_direct_lookup(const struct nilfs_bmap *direct, in nilfs_direct_lookup() argument
42 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
50 static int nilfs_direct_lookup_contig(const struct nilfs_bmap *direct, in nilfs_direct_lookup_contig() argument
61 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
65 if (NILFS_BMAP_USE_VBN(direct)) { in nilfs_direct_lookup_contig()
66 dat = nilfs_bmap_get_dat(direct); in nilfs_direct_lookup_contig()
76 (ptr2 = nilfs_direct_get_ptr(direct, key + cnt)) != in nilfs_direct_lookup_contig()
93 nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key) in nilfs_direct_find_target_v() argument
97 ptr = nilfs_bmap_find_target_seq(direct, key); in nilfs_direct_find_target_v()
103 return nilfs_bmap_find_target_in_group(direct); in nilfs_direct_find_target_v()
164 static int nilfs_direct_seek_key(const struct nilfs_bmap *direct, __u64 start, in nilfs_direct_seek_key() argument
170 if (nilfs_direct_get_ptr(direct, key) != in nilfs_direct_seek_key()
179 static int nilfs_direct_last_key(const struct nilfs_bmap *direct, __u64 *keyp) in nilfs_direct_last_key() argument
185 if (nilfs_direct_get_ptr(direct, key) != in nilfs_direct_last_key()
202 static int nilfs_direct_gather_data(struct nilfs_bmap *direct, in nilfs_direct_gather_data() argument
213 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_gather_data()
287 static int nilfs_direct_assign_v(struct nilfs_bmap *direct, in nilfs_direct_assign_v() argument
293 struct inode *dat = nilfs_bmap_get_dat(direct); in nilfs_direct_assign_v()
307 static int nilfs_direct_assign_p(struct nilfs_bmap *direct, in nilfs_direct_assign_p() argument
313 nilfs_direct_set_ptr(direct, key, blocknr); in nilfs_direct_assign_p()