Lines Matching defs:queue

727 	 * sure the buf is on the correct vnode queue.  We have
745 * If the queue is above the high water mark, wait till
872 * Determine which queue the buffer should be on, then put it there.
887 * it in a queue and wasting memory.
914 * queue, so that it'll stick around for as long as possible.
1222 panic("Clean buffer on dirty queue");
1400 * design decays to one long warm->cold queue.
1407 * If we have more than one 2q cache, as bufs fall off the cold queue
1409 * B_WARM flag in addition to B_COLD) can be put into the hot queue of
1411 * recycled. Bufs falling off the last cache's cold queue are always
1417 * this function is called when a hot or warm queue may have exceeded its
1421 bufcache *cache, struct bufqueue *queue, int64_t *queuepages);
1463 struct bufqueue * queue;
1467 /* try cold queue */
1482 * the hot queue in the next cache
1502 /* Move the buffer to the hot queue in the next cache */
1504 queue = &cache->coldqueue;
1506 queue = &cache->warmqueue;
1509 queue = &cache->hotqueue;
1512 TAILQ_REMOVE(queue, bp, b_freelist);
1547 struct bufqueue * queue;
1567 * the hot queue in the next cache
1598 * Move the buffer to the hot queue in the next cache
1601 queue = &cache->coldqueue;
1603 queue = &cache->warmqueue;
1606 queue = &cache->hotqueue;
1609 TAILQ_REMOVE(queue, bp, b_freelist);
1631 * XXX in theory we could promote warm buffers into a previous queue
1671 struct bufqueue *queue;
1686 queue = &cache->coldqueue;
1688 queue = &cache->warmqueue;
1691 queue = &cache->hotqueue;
1697 queue = &dirtyqueue;
1701 TAILQ_REMOVE(queue, bp, b_freelist);
1704 /* move buffers from a hot or warm queue to a cold queue in a cache */
1706 chillbufs(struct bufcache *cache, struct bufqueue *queue, int64_t *queuepages)
1712 * We limit the hot queue to be small, with a max of 4096 pages.
1713 * We limit the warm queue to half the cache size.
1717 if (queue == &cache->hotqueue)
1719 else if (queue == &cache->warmqueue)
1722 panic("chillbufs: invalid queue");
1725 bp = TAILQ_FIRST(queue);
1730 TAILQ_REMOVE(queue, bp, b_freelist);
1742 struct bufqueue *queue;
1765 queue = &cache->warmqueue;
1768 queue = &cache->hotqueue;
1774 chillbufs(cache, queue, queuepages);
1776 queue = &dirtyqueue;
1780 TAILQ_INSERT_TAIL(queue, bp, b_freelist);