Lines Matching refs:next_dc
1443 struct discard_cmd *prev_dc = NULL, *next_dc = NULL;
1455 (struct rb_entry **)&next_dc,
1462 di.len = next_dc ? next_dc->lstart - lstart : len;
1479 if (!next_dc || next_dc->lstart > end)
1482 di.len = next_dc->lstart - di.lstart;
1501 if (next_dc && next_dc->state == D_PREP &&
1502 next_dc->bdev == bdev &&
1503 __is_discard_front_mergeable(&di, &next_dc->di,
1505 next_dc->di.lstart = di.lstart;
1506 next_dc->di.len += di.len;
1507 next_dc->di.start = di.start;
1509 __relocate_discard_cmd(dcc, next_dc);
1520 prev_dc = next_dc;
1525 next_dc = rb_entry_safe(node, struct discard_cmd, rb_node);
1555 struct discard_cmd *prev_dc = NULL, *next_dc = NULL;
1570 (struct rb_entry **)&next_dc,
1573 dc = next_dc;
3156 struct discard_cmd *prev_dc = NULL, *next_dc = NULL;
3183 (struct rb_entry **)&next_dc,
3186 dc = next_dc;