diff options
author | Damien Le Moal <[email protected]> | 2024-04-08 10:41:04 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-04-17 08:44:02 -0600 |
commit | b85a3c1b7978f942fa5bf8cfe22b6a6aaa49d3b7 (patch) | |
tree | c4fcbd43d128322de3c937ac5a88e2aaffecb982 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a0508c36efa838b16aa93a23e3583d68d3ef6c33 (diff) |
block: Introduce bio_straddles_zones() and bio_offset_from_zone_start()
Implement the inline helper functions bio_straddles_zones() and
bio_offset_from_zone_start() to respectively test if a BIO crosses a
zone boundary (the start sector and last sector belong to different
zones) and to obtain the offset of a BIO from the start sector of its
target zone.
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Tested-by: Hans Holmberg <[email protected]>
Tested-by: Dennis Maisenbacher <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions