Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/md/
Ddm-bufio.c406 static inline unsigned int cache_index(sector_t block, unsigned int num_locks) in cache_index() function
414 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()
509 unsigned int index = cache_index(b, lh->no_previous); /* no_previous is num_locks */ in lh_next()
[all …]
/linux-6.6.21/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-6.6.21/fs/ext4/
Dmballoc.c3265 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in get_groupinfo_cache() local
3266 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache()
3491 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in ext4_groupinfo_create_slab() local
3494 if (cache_index >= NR_GRPINFO_CACHES) in ext4_groupinfo_create_slab()
3497 if (unlikely(cache_index < 0)) in ext4_groupinfo_create_slab()
3498 cache_index = 0; in ext4_groupinfo_create_slab()
3501 if (ext4_groupinfo_caches[cache_index]) { in ext4_groupinfo_create_slab()
3509 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab()
3513 ext4_groupinfo_caches[cache_index] = cachep; in ext4_groupinfo_create_slab()
/linux-6.6.21/fs/btrfs/
Dinode.c3760 goto cache_index; in btrfs_read_locked_inode()
3800 cache_index: in btrfs_read_locked_inode()