Home
last modified time | relevance | path

Searched refs:btree_pages (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/md/bcache/
Dbcache.h560 unsigned int btree_pages; member
758 #define btree_bytes(c) ((c)->btree_pages * PAGE_SIZE)
763 ((unsigned int) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits))
Dbtree.c552 ilog2(b->c->btree_pages), in mca_data_alloc()
695 nr /= c->btree_pages; in bch_mca_scan()
731 return freed * c->btree_pages; in bch_mca_scan()
745 return mca_can_free(c) * c->btree_pages; in bch_mca_count()
834 c->shrink.batch = c->btree_pages * 2; in bch_btree_cache_alloc()
1131 SET_KEY_SIZE(&k.key, c->btree_pages * PAGE_SECTORS); in __bch_btree_node_alloc()
Dsuper.c1890 c->btree_pages = meta_bucket_pages(sb); in bch_cache_set_alloc()
1891 if (c->btree_pages > BTREE_MAX_PAGES) in bch_cache_set_alloc()
1892 c->btree_pages = max_t(int, c->btree_pages / 4, in bch_cache_set_alloc()
1955 if (bch_bset_sort_state_init(&c->sort, ilog2(c->btree_pages))) in bch_cache_set_alloc()