Lines Matching refs:bmap

28  * union nilfs_bmap_ptr_req - request for bmap ptr
29 * @bpr_ptr: bmap pointer
38 * struct nilfs_bmap_stats - bmap statistics
46 * struct nilfs_bmap_operations - bmap operation table
88 * struct nilfs_bmap - bmap structure
91 * @b_inode: owner of bmap
92 * @b_ops: bmap operation table
126 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0)
132 * struct nilfs_bmap_store - shadow copy of bmap state
136 * @state: cached value of state field of bmap structure
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,
170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr);
178 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap,
185 req->bpr_ptr = bmap->b_last_allocated_ptr++;
189 static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap,
197 static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap,
204 bmap->b_last_allocated_ptr--;
207 static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap,
214 static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap,
220 bmap->b_ptr_type == NILFS_BMAP_PTR_VS);
223 static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap,
231 static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key,
234 bmap->b_last_allocated_key = key;
235 bmap->b_last_allocated_ptr = ptr;
245 /* Assume that bmap semaphore is locked. */
246 static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap)
248 return !!(bmap->b_state & NILFS_BMAP_DIRTY);
251 /* Assume that bmap semaphore is locked. */
252 static inline void nilfs_bmap_set_dirty(struct nilfs_bmap *bmap)
254 bmap->b_state |= NILFS_BMAP_DIRTY;
257 /* Assume that bmap semaphore is locked. */
258 static inline void nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap)
260 bmap->b_state &= ~NILFS_BMAP_DIRTY;