• Home
  • Raw
  • Download

Lines Matching refs:key

75 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level,  in nilfs_bmap_lookup_at_level()  argument
82 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
99 int nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, in nilfs_bmap_lookup_contig() argument
105 ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); in nilfs_bmap_lookup_contig()
111 static int nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_bmap_do_insert() argument
118 ret = bmap->b_ops->bop_check_insert(bmap, key); in nilfs_bmap_do_insert()
125 bmap, key, ptr, keys, ptrs, n); in nilfs_bmap_do_insert()
134 return bmap->b_ops->bop_insert(bmap, key, ptr); in nilfs_bmap_do_insert()
156 unsigned long key, in nilfs_bmap_insert() argument
162 ret = nilfs_bmap_do_insert(bmap, key, rec); in nilfs_bmap_insert()
168 static int nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key) in nilfs_bmap_do_delete() argument
175 ret = bmap->b_ops->bop_check_delete(bmap, key); in nilfs_bmap_do_delete()
182 bmap, key, keys, ptrs, n); in nilfs_bmap_do_delete()
191 return bmap->b_ops->bop_delete(bmap, key); in nilfs_bmap_do_delete()
194 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, unsigned long *key) in nilfs_bmap_last_key() argument
206 *key = lastkey; in nilfs_bmap_last_key()
227 int nilfs_bmap_delete(struct nilfs_bmap *bmap, unsigned long key) in nilfs_bmap_delete() argument
232 ret = nilfs_bmap_do_delete(bmap, key); in nilfs_bmap_delete()
238 static int nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, unsigned long key) in nilfs_bmap_do_truncate() argument
250 while (key <= lastkey) { in nilfs_bmap_do_truncate()
279 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, unsigned long key) in nilfs_bmap_truncate() argument
284 ret = nilfs_bmap_do_truncate(bmap, key); in nilfs_bmap_truncate()
391 int nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level) in nilfs_bmap_mark() argument
399 ret = bmap->b_ops->bop_mark(bmap, key, level); in nilfs_bmap_mark()
433 __u64 key; in nilfs_bmap_data_get_key() local
435 key = page_index(bh->b_page) << (PAGE_CACHE_SHIFT - in nilfs_bmap_data_get_key()
438 key++; in nilfs_bmap_data_get_key()
440 return key; in nilfs_bmap_data_get_key()
443 __u64 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key) in nilfs_bmap_find_target_seq() argument
447 diff = key - bmap->b_last_allocated_key; in nilfs_bmap_find_target_seq()