| 72 | } |
| 73 | |
| 74 | static int queue_cmd_lba(struct io_uring *ring, int bdev_fd, |
| 75 | uint64_t from, uint64_t nr_lba, int cmd_op) |
| 76 | { |
| 77 | return queue_cmd_range(ring, bdev_fd, from * lba_size, |
| 78 | nr_lba * lba_size, cmd_op); |
| 79 | } |
| 80 | |
| 81 | static int queue_discard_lba(struct io_uring *ring, int bdev_fd, |
| 82 | uint64_t from, uint64_t nr_lba) |