Lines Matching refs:n_buffers
90 unsigned long n_buffers[LIST_SIZE]; member
480 c->n_buffers[dirty]++; in __link_buffer()
495 BUG_ON(!c->n_buffers[b->list_mode]); in __unlink_buffer()
497 c->n_buffers[b->list_mode]--; in __unlink_buffer()
509 BUG_ON(!c->n_buffers[b->list_mode]); in __relink_lru()
511 c->n_buffers[b->list_mode]--; in __relink_lru()
512 c->n_buffers[dirty]++; in __relink_lru()
958 while (c->n_buffers[LIST_CLEAN] + c->n_buffers[LIST_DIRTY] > in __check_watermark()
970 if (c->n_buffers[LIST_DIRTY] > threshold_buffers) in __check_watermark()
1258 if (buffers_processed < c->n_buffers[LIST_DIRTY]) in dm_bufio_write_dirty_buffers()
1264 if (buffers_processed < c->n_buffers[LIST_DIRTY]) { in dm_bufio_write_dirty_buffers()
1541 unsigned long count = c->n_buffers[LIST_CLEAN] + in __scan()
1542 c->n_buffers[LIST_DIRTY]; in __scan()
1578 unsigned long count = READ_ONCE(c->n_buffers[LIST_CLEAN]) + in dm_bufio_shrink_count()
1579 READ_ONCE(c->n_buffers[LIST_DIRTY]); in dm_bufio_shrink_count()
1621 c->n_buffers[i] = 0; in dm_bufio_client_create()
1734 if (c->n_buffers[i]) in dm_bufio_client_destroy()
1735 DMERR("leaked buffer count %d: %ld", i, c->n_buffers[i]); in dm_bufio_client_destroy()
1738 BUG_ON(c->n_buffers[i]); in dm_bufio_client_destroy()
1776 count = c->n_buffers[LIST_CLEAN] + c->n_buffers[LIST_DIRTY]; in __evict_old_buffers()