Searched refs:cache_index (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/drivers/md/ |
| H A D | dm-bufio.c | 417 read_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_lock() 419 down_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_lock() 425 read_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_unlock() 427 up_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_unlock() 433 write_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_write_lock() 435 down_write(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_write_lock() 441 write_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_write_unlock() 443 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 …]
|
| /linux-6.15/arch/sparc/mm/ |
| H A D | tsb.c | 592 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-6.15/fs/ext4/ |
| H A D | mballoc.c | 3278 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in get_groupinfo_cache() local 3279 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache() 3505 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in ext4_groupinfo_create_slab() local 3508 if (cache_index >= NR_GRPINFO_CACHES) in ext4_groupinfo_create_slab() 3511 if (unlikely(cache_index < 0)) in ext4_groupinfo_create_slab() 3512 cache_index = 0; in ext4_groupinfo_create_slab() 3515 if (ext4_groupinfo_caches[cache_index]) { in ext4_groupinfo_create_slab() 3523 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab() 3527 ext4_groupinfo_caches[cache_index] = cachep; in ext4_groupinfo_create_slab()
|
| /linux-6.15/fs/btrfs/ |
| H A D | inode.c | 3919 goto cache_index; in btrfs_read_locked_inode() 3959 cache_index: in btrfs_read_locked_inode()
|