Lines Matching defs:strategy
4456 * depending on strategy either the oldest or the one with the lowest priority
4459 find_qentry_to_delete(const struct buf_queue_head *head, int strategy,
4474 if (strategy == PURGE_BY_PRIORITY) {
4488 return find_qentry_to_delete(head, strategy, false);
4491 } else /* strategy == PURGE_OLDEST or other value */ {
4510 * strategy PURGE_OLDEST to delete oldest entry, e.g. after it was resent
4511 * strategy PURGE_BY_PRIORITY to delete messages with lowest priority first,
4516 message_queue_purge(struct filed *f, size_t del_entries, int strategy)
4523 f, del_entries, strategy,
4527 (void)find_qentry_to_delete(&f->f_qhead, strategy, true);
4534 qentry = find_qentry_to_delete(&f->f_qhead, strategy, 0);