Lines Matching refs:bmap
126 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument
149 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
150 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
151 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp);
152 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp);
153 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key);
167 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument
170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
178 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument
185 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr()
189 static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_alloc_ptr() argument
197 static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_alloc_ptr() argument
204 bmap->b_last_allocated_ptr--; in nilfs_bmap_abort_alloc_ptr()
207 static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_end_ptr() argument
214 static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_end_ptr() argument
220 bmap->b_ptr_type == NILFS_BMAP_PTR_VS); in nilfs_bmap_commit_end_ptr()
223 static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_end_ptr() argument
231 static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_set_target_v() argument
234 bmap->b_last_allocated_key = key; in nilfs_bmap_set_target_v()
235 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
246 static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap) in nilfs_bmap_dirty() argument
248 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty()
252 static inline void nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) in nilfs_bmap_set_dirty() argument
254 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty()
258 static inline void nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) in nilfs_bmap_clear_dirty() argument
260 bmap->b_state &= ~NILFS_BMAP_DIRTY; in nilfs_bmap_clear_dirty()