Lines Matching refs:bmap
135 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument
158 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
159 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
160 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp);
161 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp);
162 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key);
176 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument
179 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
187 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument
194 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr()
198 static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_alloc_ptr() argument
206 static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_alloc_ptr() argument
213 bmap->b_last_allocated_ptr--; in nilfs_bmap_abort_alloc_ptr()
216 static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_end_ptr() argument
223 static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_end_ptr() argument
229 bmap->b_ptr_type == NILFS_BMAP_PTR_VS); in nilfs_bmap_commit_end_ptr()
232 static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_end_ptr() argument
240 static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_set_target_v() argument
243 bmap->b_last_allocated_key = key; in nilfs_bmap_set_target_v()
244 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
255 static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap) in nilfs_bmap_dirty() argument
257 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty()
261 static inline void nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) in nilfs_bmap_set_dirty() argument
263 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty()
267 static inline void nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) in nilfs_bmap_clear_dirty() argument
269 bmap->b_state &= ~NILFS_BMAP_DIRTY; in nilfs_bmap_clear_dirty()