Home
last modified time | relevance | path

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

/openbmc/linux/drivers/md/
H A Ddm-crypt.c157 struct percpu_counter n_allocated_pages; member
1707 if (unlikely(percpu_counter_read_positive(&cc->n_allocated_pages) + in crypt_alloc_buffer()
1714 percpu_counter_add(&cc->n_allocated_pages, 1 << order); in crypt_alloc_buffer()
1756 percpu_counter_sub(&cc->n_allocated_pages, in crypt_free_buffer_pages()
2740 if (unlikely(percpu_counter_read_positive(&cc->n_allocated_pages) >= dm_crypt_pages_per_client) && in crypt_page_alloc()
2746 percpu_counter_add(&cc->n_allocated_pages, 1); in crypt_page_alloc()
2756 percpu_counter_sub(&cc->n_allocated_pages, 1); in crypt_page_free()
2784 WARN_ON(percpu_counter_sum(&cc->n_allocated_pages) != 0); in crypt_dtr()
2785 percpu_counter_destroy(&cc->n_allocated_pages); in crypt_dtr()
3270 ret = percpu_counter_init(&cc->n_allocated_pages, 0, GFP_KERNEL); in crypt_ctr()