Lines Matching refs:background_tracker
19 struct background_tracker { struct
32 struct background_tracker *btracker_create(unsigned max_work) in btracker_create() argument
34 struct background_tracker *b = kmalloc(sizeof(*b), GFP_KERNEL); in btracker_create()
61 void btracker_destroy(struct background_tracker *b) in btracker_destroy()
79 static bool __insert_pending(struct background_tracker *b, in __insert_pending()
108 static struct bt_work *__find_pending(struct background_tracker *b, in __find_pending()
133 static void update_stats(struct background_tracker *b, struct policy_work *w, int delta) in update_stats()
150 unsigned btracker_nr_writebacks_queued(struct background_tracker *b) in btracker_nr_writebacks_queued()
156 unsigned btracker_nr_demotions_queued(struct background_tracker *b) in btracker_nr_demotions_queued()
162 static bool max_work_reached(struct background_tracker *b) in max_work_reached()
169 static struct bt_work *alloc_work(struct background_tracker *b) in alloc_work()
177 int btracker_queue(struct background_tracker *b, in btracker_queue()
215 int btracker_issue(struct background_tracker *b, struct policy_work **work) in btracker_issue()
230 void btracker_complete(struct background_tracker *b, in btracker_complete()
242 bool btracker_promotion_already_present(struct background_tracker *b, in btracker_promotion_already_present()