Home
last modified time | relevance | path

Searched refs:cache_index (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/arch/sparc/mm/
Dtsb.c592 unsigned long cache_index; in tsb_destroy_one() local
596 cache_index = tp->tsb_reg_val & 0x7UL; in tsb_destroy_one()
597 kmem_cache_free(tsb_caches[cache_index], tp->tsb); in tsb_destroy_one()
/Linux-v6.6/drivers/md/
Ddm-bufio.c399 static inline unsigned int cache_index(sector_t block, unsigned int num_locks) in cache_index() function
406 down_read(&bc->trees[cache_index(block, bc->num_locks)].lock); in cache_read_lock()
411 up_read(&bc->trees[cache_index(block, bc->num_locks)].lock); in cache_read_unlock()
416 down_write(&bc->trees[cache_index(block, bc->num_locks)].lock); in cache_write_lock()
421 up_write(&bc->trees[cache_index(block, bc->num_locks)].lock); in cache_write_unlock()
476 unsigned int index = cache_index(b, lh->no_previous); /* no_previous is num_locks */ in lh_next()
583 b = __cache_get(&bc->trees[cache_index(block, bc->num_locks)].root, block); in cache_get()
657 rb_erase(&b->node, &bc->trees[cache_index(b->block, bc->num_locks)].root); in __cache_evict()
823 r = __cache_insert(&bc->trees[cache_index(b->block, bc->num_locks)].root, b); in cache_insert()
849 rb_erase(&b->node, &bc->trees[cache_index(b->block, bc->num_locks)].root); in cache_remove()
/Linux-v6.6/fs/ext4/
Dmballoc.c3241 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in get_groupinfo_cache() local
3242 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache()
3467 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in ext4_groupinfo_create_slab() local
3470 if (cache_index >= NR_GRPINFO_CACHES) in ext4_groupinfo_create_slab()
3473 if (unlikely(cache_index < 0)) in ext4_groupinfo_create_slab()
3474 cache_index = 0; in ext4_groupinfo_create_slab()
3477 if (ext4_groupinfo_caches[cache_index]) { in ext4_groupinfo_create_slab()
3485 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab()
3489 ext4_groupinfo_caches[cache_index] = cachep; in ext4_groupinfo_create_slab()
/Linux-v6.6/fs/btrfs/
Dinode.c3745 goto cache_index; in btrfs_read_locked_inode()
3785 cache_index: in btrfs_read_locked_inode()