Home
last modified time | relevance | path

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

/openbmc/linux/drivers/md/
H A Ddm-bufio.c414 read_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_lock()
416 down_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_lock()
422 read_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_unlock()
424 up_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_unlock()
430 write_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_write_lock()
432 down_write(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_write_lock()
438 write_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_write_unlock()
440 up_write(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_write_unlock()
620 b = __cache_get(&bc->trees[cache_index(block, bc->num_locks)].root, block); in cache_get()
694 rb_erase(&b->node, &bc->trees[cache_index(b->block, bc->num_locks)].root); in __cache_evict()
[all …]
/openbmc/linux/arch/sparc/mm/
H A 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()
/openbmc/linux/fs/ext4/
H A Dmballoc.c3272 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in get_groupinfo_cache() local
3273 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache()
3498 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in ext4_groupinfo_create_slab() local
3501 if (cache_index >= NR_GRPINFO_CACHES) in ext4_groupinfo_create_slab()
3504 if (unlikely(cache_index < 0)) in ext4_groupinfo_create_slab()
3505 cache_index = 0; in ext4_groupinfo_create_slab()
3508 if (ext4_groupinfo_caches[cache_index]) { in ext4_groupinfo_create_slab()
3516 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab()
3520 ext4_groupinfo_caches[cache_index] = cachep; in ext4_groupinfo_create_slab()
/openbmc/linux/fs/btrfs/
H A Dinode.c3762 goto cache_index; in btrfs_read_locked_inode()
3802 cache_index: in btrfs_read_locked_inode()