Searched refs:btree_pages (Results 1 – 3 of 3) sorted by relevance
559 unsigned int btree_pages; member757 #define btree_bytes(c) ((c)->btree_pages * PAGE_SIZE)762 ((unsigned int) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits))
552 ilog2(b->c->btree_pages), in mca_data_alloc()674 nr /= c->btree_pages; in bch_mca_scan()710 return freed * c->btree_pages; in bch_mca_scan()724 return mca_can_free(c) * c->btree_pages; in bch_mca_count()813 c->shrink.batch = c->btree_pages * 2; in bch_btree_cache_alloc()1101 SET_KEY_SIZE(&k.key, c->btree_pages * PAGE_SECTORS); in __bch_btree_node_alloc()
1890 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()