Lines Matching refs:issued
1107 struct discard_cmd *dc, int *issued) in __submit_discard_cmd() argument
1134 while (total_len && *issued < dpolicy->max_requests && !err) { in __submit_discard_cmd()
1144 (*issued)++; in __submit_discard_cmd()
1145 if (*issued == dpolicy->max_requests) in __submit_discard_cmd()
1388 struct discard_policy *dpolicy, int *issued) in __issue_discard_cmd_orderly() argument
1422 err = __submit_discard_cmd(sbi, dpolicy, dc, issued); in __issue_discard_cmd_orderly()
1424 if (*issued >= dpolicy->max_requests) in __issue_discard_cmd_orderly()
1440 if (!(*issued) && io_interrupted) in __issue_discard_cmd_orderly()
1441 *issued = -1; in __issue_discard_cmd_orderly()
1453 int i, issued; in __issue_discard_cmd() local
1460 issued = 0; in __issue_discard_cmd()
1470 __issue_discard_cmd_orderly(sbi, dpolicy, &issued); in __issue_discard_cmd()
1471 return issued; in __issue_discard_cmd()
1496 __submit_discard_cmd(sbi, dpolicy, dc, &issued); in __issue_discard_cmd()
1498 if (issued >= dpolicy->max_requests) in __issue_discard_cmd()
1505 if (issued >= dpolicy->max_requests || io_interrupted) in __issue_discard_cmd()
1509 if (dpolicy->type == DPOLICY_UMOUNT && issued) { in __issue_discard_cmd()
1514 if (!issued && io_interrupted) in __issue_discard_cmd()
1515 issued = -1; in __issue_discard_cmd()
1517 return issued; in __issue_discard_cmd()
1697 int issued; in issue_discard_thread() local
1736 issued = __issue_discard_cmd(sbi, &dpolicy); in issue_discard_thread()
1737 if (issued > 0) { in issue_discard_thread()
1740 } else if (issued == -1) { in issue_discard_thread()
2959 int issued; in __issue_discard_cmd_range() local
2963 issued = 0; in __issue_discard_cmd_range()
2992 err = __submit_discard_cmd(sbi, dpolicy, dc, &issued); in __issue_discard_cmd_range()
2994 if (issued >= dpolicy->max_requests) { in __issue_discard_cmd_range()