Searched refs:cache_index (Results 1 – 4 of 4) sorted by relevance
592 unsigned long cache_index; in tsb_destroy_one() local596 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()
3384 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in get_groupinfo_cache() local3385 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache()3609 int cache_index = blocksize_bits - EXT4_MIN_BLOCK_LOG_SIZE; in ext4_groupinfo_create_slab() local3612 if (cache_index >= NR_GRPINFO_CACHES) in ext4_groupinfo_create_slab()3615 if (unlikely(cache_index < 0)) in ext4_groupinfo_create_slab()3616 cache_index = 0; in ext4_groupinfo_create_slab()3619 if (ext4_groupinfo_caches[cache_index]) { in ext4_groupinfo_create_slab()3627 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab()3631 ext4_groupinfo_caches[cache_index] = cachep; in ext4_groupinfo_create_slab()
399 static inline unsigned int cache_index(sector_t block, unsigned int num_locks) in cache_index() function408 return &bc->trees[cache_index(block, bc->num_locks)]; in cache_get_tree()517 unsigned int index = cache_index(b, lh->no_previous); /* no_previous is num_locks */ in lh_next()
4091 goto cache_index; in btrfs_read_locked_inode()4128 cache_index: in btrfs_read_locked_inode()