Lines Matching refs:bmap

138 #define NILFS_BMAP_USE_VBN(bmap)	((bmap)->b_ptr_type > 0)  argument
161 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
162 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
163 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp);
164 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp);
165 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key);
179 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument
182 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
190 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument
197 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr()
201 static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_alloc_ptr() argument
209 static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_alloc_ptr() argument
216 bmap->b_last_allocated_ptr--; in nilfs_bmap_abort_alloc_ptr()
219 static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_end_ptr() argument
226 static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_end_ptr() argument
232 bmap->b_ptr_type == NILFS_BMAP_PTR_VS); in nilfs_bmap_commit_end_ptr()
235 static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_end_ptr() argument
243 static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_set_target_v() argument
246 bmap->b_last_allocated_key = key; in nilfs_bmap_set_target_v()
247 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
258 static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap) in nilfs_bmap_dirty() argument
260 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty()
264 static inline void nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) in nilfs_bmap_set_dirty() argument
266 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty()
270 static inline void nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) in nilfs_bmap_clear_dirty() argument
272 bmap->b_state &= ~NILFS_BMAP_DIRTY; in nilfs_bmap_clear_dirty()