Searched refs:wb_ctl (Results 1 – 1 of 1) sorted by relevance
832 static void release_wb_ctl(struct zram_wb_ctl *wb_ctl) in release_wb_ctl() argument834 if (!wb_ctl) in release_wb_ctl()838 WARN_ON(atomic_read(&wb_ctl->num_inflight)); in release_wb_ctl()839 WARN_ON(!list_empty(&wb_ctl->done_reqs)); in release_wb_ctl()841 while (!list_empty(&wb_ctl->idle_reqs)) { in release_wb_ctl()844 req = list_first_entry(&wb_ctl->idle_reqs, in release_wb_ctl()850 kfree(wb_ctl); in release_wb_ctl()855 struct zram_wb_ctl *wb_ctl; in init_wb_ctl() local858 wb_ctl = kmalloc_obj(*wb_ctl); in init_wb_ctl()859 if (!wb_ctl) in init_wb_ctl()[all …]