numam-spdk/test
lorneli 02be32d482 bdev: optimize coversion of bytes to blocks
Since division is more expensive than right shift operator, in
function spdk_bdev_bytes_to_blocks, use right shift instead of
division if the blocklen of bdev is a power of two.

Change-Id: Ib3dbc792e86582bba30b3dc028efbd12c69075ba
Signed-off-by: lorneli <lorneli@163.com>
Reviewed-on: https://review.gerrithub.io/438318
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-01-02 08:31:59 +00:00
..
app lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
bdev build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
blobfs test/rocksdb: only use 2GB cache for per-patch testing 2018-12-13 21:52:12 +00:00
blobstore vbdev_crypto.c: Always initialize crypto drivers up front 2018-10-24 23:29:28 +00:00
common test/common: add stop.sh in ceph setup testting 2018-12-19 17:04:28 +00:00
config_converter nvmf: remove tgt_opts from nvmf_tgt 2018-11-08 23:08:26 +00:00
cpp_headers build: don't include spdk.app.mk in test/cpp_headers 2018-12-12 22:35:21 +00:00
env env: remove default pre-reserved memory size 2018-12-12 11:00:57 +00:00
event build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test: mark iscsi_initiator.sh as executable 2018-12-19 19:16:08 +00:00
json_config test/json_config: add passthru to clear_config.py 2018-11-12 20:14:32 +00:00
lvol test: modprobe nbd at the start of autotest 2018-11-26 18:17:28 +00:00
nvme nvme/aer: unregister aer cb before detaching from ctrlrs 2018-12-23 00:59:42 +00:00
nvmf nvme_rdma: Add source addr info to RPC 2018-12-20 17:31:43 +00:00
pmem Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
rpc_client build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
spdkcli test/spdkcli: Run different parts of tests with given spdk target. 2018-12-07 22:59:07 +00:00
unit bdev: optimize coversion of bytes to blocks 2019-01-02 08:31:59 +00:00
vhost autotest: move vhost test script execution to separate file 2018-12-23 00:43:18 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00