summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2024-04-08 04:41:03 +0300
committerJens Axboe <axboe@kernel.dk>2024-04-17 17:44:02 +0300
commita0508c36efa838b16aa93a23e3583d68d3ef6c33 (patch)
tree6123e7c5de6527930317b235bfbeaf802f8c8c89 /.clang-format
parentc0da26f950a355ef3540ca8d215351e1ed4cac47 (diff)
downloadlinux-a0508c36efa838b16aa93a23e3583d68d3ef6c33.tar.xz
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 '.clang-format')
0 files changed, 0 insertions, 0 deletions