Lines Matching refs:lru
84 struct list_head lru; member
114 struct list_head lru; member
670 list_add(&ins->lru, &wc->lru); in writecache_insert_entry()
676 list_del(&e->lru); in writecache_unlink()
696 list_add_tail(&e->lru, &wc->freelist); in writecache_add_to_freelist()
736 e = container_of(wc->freelist.next, struct wc_entry, lru); in writecache_pop_from_freelist()
739 list_del(&e->lru); in writecache_pop_from_freelist()
775 wc->lru.next = LIST_POISON1; in writecache_poison_lists()
776 wc->lru.prev = LIST_POISON2; in writecache_poison_lists()
801 if (list_empty(&wc->lru)) in writecache_flush()
804 e = container_of(wc->lru.next, struct wc_entry, lru); in writecache_flush()
815 if (unlikely(e->lru.next == &wc->lru)) in writecache_flush()
817 e2 = container_of(e->lru.next, struct wc_entry, lru); in writecache_flush()
847 if (unlikely(e->lru.prev == &wc->lru)) in writecache_flush()
849 e = container_of(e->lru.prev, struct wc_entry, lru); in writecache_flush()
1019 INIT_LIST_HEAD(&wc->lru); in writecache_resume()
1681 INIT_LIST_HEAD(&e->lru); in __writecache_endio_pmem()
1717 INIT_LIST_HEAD(&e->lru); in __writecache_endio_ssd()
1819 e = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_pmem()
1820 list_del(&e->lru); in __writecache_writeback_pmem()
1844 f = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_pmem()
1851 list_del(&f->lru); in __writecache_writeback_pmem()
1880 e = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_ssd()
1881 list_del(&e->lru); in __writecache_writeback_ssd()
1899 f = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_ssd()
1901 list_del(&f->lru); in __writecache_writeback_ssd()
1970 while (!list_empty(&wc->lru) && in writecache_writeback()
1973 (jiffies - container_of(wc->lru.prev, struct wc_entry, lru)->age >= in writecache_writeback()
1991 e = container_of(wc->lru.prev, struct wc_entry, lru); in writecache_writeback()
2002 list_move(&e->lru, &skipped); in writecache_writeback()
2008 list_move(&e->lru, &wbl.list); in writecache_writeback()
2043 list_move(&g->lru, &wbl.list); in writecache_writeback()
2062 list_splice_tail(&skipped, &wc->lru); in writecache_writeback()