diff options
| author | 2025-11-07 15:38:43 +0900 | |
|---|---|---|
| committer | 2025-11-07 09:28:08 -0700 | |
| commit | e2b0ec776164c11569ee021fac89596a2642654c (patch) | |
| tree | aa0c83307781d2f95c6e5682a173124626b37824 /scripts/Makefile.thinlto | |
| parent | block: improve blk_zone_wp_offset() (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
