Lines Matching refs:sentinel
675 static MALLOC_DEFINE(M_SENTINEL, "sentinel", "Worklist sentinel");
1756 struct worklist sentinel;
1774 sentinel.wk_mp = NULL;
1775 sentinel.wk_type = D_SENTINEL;
1776 LIST_INSERT_HEAD(&ump->softdep_workitem_pending, &sentinel, wk_list);
1777 for (wk = LIST_NEXT(&sentinel, wk_list); wk != NULL;
1778 wk = LIST_NEXT(&sentinel, wk_list)) {
1780 LIST_REMOVE(&sentinel, wk_list);
1781 LIST_INSERT_AFTER(wk, &sentinel, wk_list);
1838 LIST_REMOVE(&sentinel, wk_list);
1840 if (ump->softdep_worklist_tail == &sentinel)
1842 (struct worklist *)sentinel.wk_list.le_prev;
12411 * called. Newly dirtied cgs will be inserted before the sentinel. This
12421 struct bmsafemap *sentinel;
12426 sentinel = malloc(sizeof(*sentinel), M_BMSAFEMAP, M_ZERO | M_WAITOK);
12427 sentinel->sm_cg = -1;
12431 LIST_INSERT_HEAD(&ump->softdep_dirtycg, sentinel, sm_next);
12432 for (bmsafemap = LIST_NEXT(sentinel, sm_next); bmsafemap != NULL;
12433 bmsafemap = LIST_NEXT(sentinel, sm_next)) {
12438 LIST_REMOVE(sentinel, sm_next);
12439 LIST_INSERT_AFTER(bmsafemap, sentinel, sm_next);
12449 LIST_REMOVE(sentinel, sm_next);
12450 LIST_INSERT_AFTER(bmsafemap, sentinel, sm_next);
12462 LIST_REMOVE(sentinel, sm_next);
12464 free(sentinel, M_BMSAFEMAP);