diff options
| author | Damien Le Moal <dlemoal@kernel.org> | 2025-11-07 09:38:43 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-07 19:28:08 +0300 |
| commit | e2b0ec776164c11569ee021fac89596a2642654c (patch) | |
| tree | aa0c83307781d2f95c6e5682a173124626b37824 /tools/perf/scripts | |
| parent | bbac6e0fa57f6624123edf20ba8f9b7c0e092117 (diff) | |
| download | linux-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')
0 files changed, 0 insertions, 0 deletions
