Lines Matching refs:n_buffers
89 unsigned long n_buffers[LIST_SIZE]; member
520 c->n_buffers[dirty]++; in __link_buffer()
537 BUG_ON(!c->n_buffers[b->list_mode]); in __unlink_buffer()
539 c->n_buffers[b->list_mode]--; in __unlink_buffer()
555 BUG_ON(!c->n_buffers[b->list_mode]); in __relink_lru()
557 c->n_buffers[b->list_mode]--; in __relink_lru()
558 c->n_buffers[dirty]++; in __relink_lru()
997 if (c->n_buffers[LIST_DIRTY] > c->n_buffers[LIST_CLEAN] * DM_BUFIO_WRITEBACK_RATIO) in __check_watermark()
1305 if (buffers_processed < c->n_buffers[LIST_DIRTY]) in dm_bufio_write_dirty_buffers()
1311 if (buffers_processed < c->n_buffers[LIST_DIRTY]) { in dm_bufio_write_dirty_buffers()
1674 unsigned long count = c->n_buffers[LIST_CLEAN] + in __scan()
1675 c->n_buffers[LIST_DIRTY]; in __scan()
1716 unsigned long count = READ_ONCE(c->n_buffers[LIST_CLEAN]) + in dm_bufio_shrink_count()
1717 READ_ONCE(c->n_buffers[LIST_DIRTY]); in dm_bufio_shrink_count()
1778 c->n_buffers[i] = 0; in dm_bufio_client_create()
1901 if (c->n_buffers[i]) in dm_bufio_client_destroy()
1902 DMERR("leaked buffer count %d: %ld", i, c->n_buffers[i]); in dm_bufio_client_destroy()
1905 BUG_ON(c->n_buffers[i]); in dm_bufio_client_destroy()
1954 count = c->n_buffers[LIST_CLEAN] + c->n_buffers[LIST_DIRTY]; in __evict_old_buffers()