Factor out getting chunk info. offset into a helper function bdev_ocssd_to_chunk_info_offset() and locate it next to bdev_ocssd_to_disk_lba(). This will improve readability a little. Besides, cache addr_shift first in bdev_ocssd_translate_lba() for clarification. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I4c078e2002638d90b000b97f9f7cda90938d02ca Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5132 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |