diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2025-10-22 14:41:00 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-10-22 20:14:05 +0300 |
| commit | a65988a0ad047dbdb8a1eb6f07540b980858b522 (patch) | |
| tree | bb3b0e6688350ce468345973235e0bec6177a7b6 /include/linux | |
| parent | 5c5028ee594ce5f907ca6ad1c32cca6a15098464 (diff) | |
| download | linux-a65988a0ad047dbdb8a1eb6f07540b980858b522.tar.xz | |
blktrace: only calculate trace length once
De-duplicate the calculation of the trace length instead of doing the
calculation twice, once for calling trace_buffer_lock_reserve() and once
for calling relay_reserve().
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
