Lines Matching refs:wbl
1817 static void __writeback_throttle(struct dm_writecache *wc, struct writeback_list *wbl) in __writeback_throttle() argument
1820 if (READ_ONCE(wc->writeback_size) - wbl->size >= wc->max_writeback_jobs) { in __writeback_throttle()
1822 while (wc->writeback_size - wbl->size >= wc->max_writeback_jobs) in __writeback_throttle()
1830 static void __writecache_writeback_pmem(struct dm_writecache *wc, struct writeback_list *wbl) in __writecache_writeback_pmem() argument
1837 while (wbl->size) { in __writecache_writeback_pmem()
1838 wbl->size--; in __writecache_writeback_pmem()
1839 e = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_pmem()
1866 while (wbl->size && wb->wc_list_n < max_pages) { in __writecache_writeback_pmem()
1867 f = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_pmem()
1873 wbl->size--; in __writecache_writeback_pmem()
1890 __writeback_throttle(wc, wbl); in __writecache_writeback_pmem()
1894 static void __writecache_writeback_ssd(struct dm_writecache *wc, struct writeback_list *wbl) in __writecache_writeback_ssd() argument
1900 while (wbl->size) { in __writecache_writeback_ssd()
1903 wbl->size--; in __writecache_writeback_ssd()
1904 e = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_ssd()
1922 wbl->size--; in __writecache_writeback_ssd()
1923 f = container_of(wbl->list.prev, struct wc_entry, lru); in __writecache_writeback_ssd()
1939 __writeback_throttle(wc, wbl); in __writecache_writeback_ssd()
1950 struct writeback_list wbl; in writecache_writeback() local
1992 INIT_LIST_HEAD(&wbl.list); in writecache_writeback()
1993 wbl.size = 0; in writecache_writeback()
2032 list_move(&e->lru, &wbl.list); in writecache_writeback()
2033 wbl.size++; in writecache_writeback()
2067 list_move(&g->lru, &wbl.list); in writecache_writeback()
2068 wbl.size++; in writecache_writeback()
2091 if (unlikely(!wbl.size)) in writecache_writeback()
2100 __writecache_writeback_pmem(wc, &wbl); in writecache_writeback()
2102 __writecache_writeback_ssd(wc, &wbl); in writecache_writeback()