Hold not only io_stat pointer but also num_blocks and blocklen in local variables. This will shorten and simplify bdev_io_update_io_stat(), and improve readability and changeability. Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I527b72538a169a1faafd32863ff539306a8763a9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15732 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> |
||
---|---|---|
.. | ||
bdev_internal.h | ||
bdev_rpc.c | ||
bdev_zone.c | ||
bdev.c | ||
Makefile | ||
part.c | ||
scsi_nvme.c | ||
spdk_bdev.map | ||
vtune.c |