Lines Matching defs:next_dc
968 struct discard_cmd *cur_dc, *next_dc;
976 next_dc = rb_entry(next, struct discard_cmd, rb_node);
978 if (cur_dc->di.lstart + cur_dc->di.len > next_dc->di.lstart) {
982 next_dc->di.lstart, next_dc->di.len);
1440 struct discard_cmd *prev_dc = NULL, *next_dc = NULL;
1449 &prev_dc, &next_dc, &insert_p, &insert_parent);
1455 di.len = next_dc ? next_dc->di.lstart - lstart : len;
1472 if (!next_dc || next_dc->di.lstart > end)
1475 di.len = next_dc->di.lstart - di.lstart;
1494 if (next_dc && next_dc->state == D_PREP &&
1495 next_dc->bdev == bdev &&
1496 __is_discard_front_mergeable(&di, &next_dc->di,
1498 next_dc->di.lstart = di.lstart;
1499 next_dc->di.len += di.len;
1500 next_dc->di.start = di.start;
1502 __relocate_discard_cmd(dcc, next_dc);
1512 prev_dc = next_dc;
1517 next_dc = rb_entry_safe(node, struct discard_cmd, rb_node);
1558 struct discard_cmd *prev_dc = NULL, *next_dc = NULL;
1566 &prev_dc, &next_dc, &insert_p, &insert_parent);
1568 dc = next_dc;
3146 struct discard_cmd *prev_dc = NULL, *next_dc = NULL;
3161 &prev_dc, &next_dc, &insert_p, &insert_parent);
3163 dc = next_dc;