summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2025-11-07 09:38:43 +0300
committerJens Axboe <axboe@kernel.dk>2025-11-07 19:28:08 +0300
commite2b0ec776164c11569ee021fac89596a2642654c (patch)
treeaa0c83307781d2f95c6e5682a173124626b37824 /tools/perf/scripts/python
parentbbac6e0fa57f6624123edf20ba8f9b7c0e092117 (diff)
downloadlinux-e2b0ec776164c11569ee021fac89596a2642654c.tar.xz
block: refactor disk_zone_wplug_sync_wp_offset()
The helper function blk_zone_wp_offset() is called from disk_zone_wplug_sync_wp_offset(), and again called from blk_revalidate_seq_zone() right after the call to disk_zone_wplug_sync_wp_offset(). Change disk_zone_wplug_sync_wp_offset() to return the value of obtained with blk_zone_wp_offset() to avoid this double call, which simplifies a little blk_revalidate_seq_zone(). Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions