Lines Matching full:direct
3 * NILFS direct block pointer.
13 #include "direct.h"
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()
98 nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key) in nilfs_direct_find_target_v() argument
102 ptr = nilfs_bmap_find_target_seq(direct, key); in nilfs_direct_find_target_v()
108 return nilfs_bmap_find_target_in_group(direct); in nilfs_direct_find_target_v()
169 static int nilfs_direct_seek_key(const struct nilfs_bmap *direct, __u64 start, in nilfs_direct_seek_key() argument
175 if (nilfs_direct_get_ptr(direct, key) != in nilfs_direct_seek_key()
184 static int nilfs_direct_last_key(const struct nilfs_bmap *direct, __u64 *keyp) in nilfs_direct_last_key() argument
190 if (nilfs_direct_get_ptr(direct, key) != in nilfs_direct_last_key()
207 static int nilfs_direct_gather_data(struct nilfs_bmap *direct, in nilfs_direct_gather_data() argument
218 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_gather_data()
292 static int nilfs_direct_assign_v(struct nilfs_bmap *direct, in nilfs_direct_assign_v() argument
298 struct inode *dat = nilfs_bmap_get_dat(direct); in nilfs_direct_assign_v()
312 static int nilfs_direct_assign_p(struct nilfs_bmap *direct, in nilfs_direct_assign_p() argument
318 nilfs_direct_set_ptr(direct, key, blocknr); in nilfs_direct_assign_p()