diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2024-04-08 10:41:03 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-17 08:44:02 -0600 |
commit | a0508c36efa838b16aa93a23e3583d68d3ef6c33 (patch) | |
tree | 6123e7c5de6527930317b235bfbeaf802f8c8c89 /scripts/config | |
parent | c0da26f950a355ef3540ca8d215351e1ed4cac47 (diff) | |
download | lwn-a0508c36efa838b16aa93a23e3583d68d3ef6c33.tar.gz lwn-a0508c36efa838b16aa93a23e3583d68d3ef6c33.zip |
block: Introduce blk_zone_update_request_bio()
On completion of a zone append request, the request sector indicates the
location of the written data. This value must be returned to the user
through the BIO iter sector. This is done in 2 places: in
blk_complete_request() and in blk_update_request(). Introduce the inline
helper function blk_zone_update_request_bio() to avoid duplicating
this BIO update for zone append requests, and to compile out this
helper call when CONFIG_BLK_DEV_ZONED is not enabled.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Hans Holmberg <hans.holmberg@wdc.com>
Tested-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240408014128.205141-4-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/config')
0 files changed, 0 insertions, 0 deletions