Lines Matching refs:di
942 dc->di.lstart = lstart; in __create_discard_cmd()
943 dc->di.start = start; in __create_discard_cmd()
944 dc->di.len = len; in __create_discard_cmd()
974 if (cur_dc->di.lstart + cur_dc->di.len > next_dc->di.lstart) { in f2fs_check_discard_tree()
977 cur_dc->di.lstart, cur_dc->di.len, in f2fs_check_discard_tree()
978 next_dc->di.lstart, next_dc->di.len); in f2fs_check_discard_tree()
997 if (blkaddr < dc->di.lstart) in __lookup_discard_cmd()
999 else if (blkaddr >= dc->di.lstart + dc->di.len) in __lookup_discard_cmd()
1030 if (blkaddr < dc->di.lstart) in __lookup_discard_cmd_ret()
1032 else if (blkaddr >= dc->di.lstart + dc->di.len) in __lookup_discard_cmd_ret()
1043 if (parent && blkaddr > dc->di.lstart) in __lookup_discard_cmd_ret()
1048 if (parent && blkaddr < dc->di.lstart) in __lookup_discard_cmd_ret()
1072 dcc->undiscard_blks -= dc->di.len; in __detach_discard_cmd()
1085 trace_f2fs_remove_discard(dc->bdev, dc->di.start, dc->di.len); in __remove_discard_cmd()
1103 dc->di.lstart, dc->di.start, dc->di.len, dc->error); in __remove_discard_cmd()
1220 trace_f2fs_issue_discard(bdev, dc->di.start, dc->di.len); in __submit_discard_cmd()
1222 lstart = dc->di.lstart; in __submit_discard_cmd()
1223 start = dc->di.start; in __submit_discard_cmd()
1224 len = dc->di.len; in __submit_discard_cmd()
1227 dc->di.len = 0; in __submit_discard_cmd()
1243 dc->di.len += len; in __submit_discard_cmd()
1320 if (lstart < dc->di.lstart) { in __insert_discard_cmd()
1322 } else if (lstart >= dc->di.lstart + dc->di.len) { in __insert_discard_cmd()
1339 list_move_tail(&dc->list, &dcc->pend_list[plist_idx(dc->di.len)]); in __relocate_discard_cmd()
1346 struct discard_info di = dc->di; in __punch_discard_cmd() local
1349 if (dc->state == D_DONE || dc->di.len == 1) { in __punch_discard_cmd()
1354 dcc->undiscard_blks -= di.len; in __punch_discard_cmd()
1356 if (blkaddr > di.lstart) { in __punch_discard_cmd()
1357 dc->di.len = blkaddr - dc->di.lstart; in __punch_discard_cmd()
1358 dcc->undiscard_blks += dc->di.len; in __punch_discard_cmd()
1363 if (blkaddr < di.lstart + di.len - 1) { in __punch_discard_cmd()
1366 di.start + blkaddr + 1 - di.lstart, in __punch_discard_cmd()
1367 di.lstart + di.len - 1 - blkaddr); in __punch_discard_cmd()
1369 dc->di.lstart++; in __punch_discard_cmd()
1370 dc->di.len--; in __punch_discard_cmd()
1371 dc->di.start++; in __punch_discard_cmd()
1372 dcc->undiscard_blks += dc->di.len; in __punch_discard_cmd()
1385 struct discard_info di = {0}; in __update_discard_tree_range() local
1398 di.lstart = lstart; in __update_discard_tree_range()
1399 di.len = next_dc ? next_dc->di.lstart - lstart : len; in __update_discard_tree_range()
1400 di.len = min(di.len, len); in __update_discard_tree_range()
1401 di.start = start; in __update_discard_tree_range()
1410 di.lstart = prev_dc->di.lstart + prev_dc->di.len; in __update_discard_tree_range()
1411 if (di.lstart < lstart) in __update_discard_tree_range()
1412 di.lstart = lstart; in __update_discard_tree_range()
1413 if (di.lstart >= end) in __update_discard_tree_range()
1416 if (!next_dc || next_dc->di.lstart > end) in __update_discard_tree_range()
1417 di.len = end - di.lstart; in __update_discard_tree_range()
1419 di.len = next_dc->di.lstart - di.lstart; in __update_discard_tree_range()
1420 di.start = start + di.lstart - lstart; in __update_discard_tree_range()
1423 if (!di.len) in __update_discard_tree_range()
1428 __is_discard_back_mergeable(&di, &prev_dc->di, in __update_discard_tree_range()
1430 prev_dc->di.len += di.len; in __update_discard_tree_range()
1431 dcc->undiscard_blks += di.len; in __update_discard_tree_range()
1433 di = prev_dc->di; in __update_discard_tree_range()
1440 __is_discard_front_mergeable(&di, &next_dc->di, in __update_discard_tree_range()
1442 next_dc->di.lstart = di.lstart; in __update_discard_tree_range()
1443 next_dc->di.len += di.len; in __update_discard_tree_range()
1444 next_dc->di.start = di.start; in __update_discard_tree_range()
1445 dcc->undiscard_blks += di.len; in __update_discard_tree_range()
1454 di.lstart, di.start, di.len); in __update_discard_tree_range()
1515 dcc->next_pos = dc->di.lstart + dc->di.len; in __issue_discard_cmd_orderly()
1652 len = dc->di.len; in __wait_one_discard_bio()
1675 if (iter->di.lstart + iter->di.len <= start || in __wait_discard_cmd_range()
1676 end <= iter->di.lstart) in __wait_discard_cmd_range()
1678 if (iter->di.len < dpolicy->granularity) in __wait_discard_cmd_range()
1683 trimmed += iter->di.len; in __wait_discard_cmd_range()
3071 while (dc && dc->di.lstart <= end) { in __issue_discard_cmd_range()
3075 if (dc->di.len < dpolicy->granularity) in __issue_discard_cmd_range()
3086 start = dc->di.lstart + dc->di.len; in __issue_discard_cmd_range()