numam-spdk/lib
Ziye Yang 9ea96234d8 blobfs, tree: fix a bug in spdk_tree_insert_buffer
From the exising code, the comparison should + 1.
Suppose offset = 2^19, we still can be fit into
tree with level =0, since there will be 64 buffer,
each with size 2^18, so we do not need to
increse the tree level.

Also a unit test is added to demonstrate this.

Change-Id: I95d3542b0881aa7bb661bc57bc789cc4ef4e7509
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/372396
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-08-15 16:36:41 -04:00
..
bdev bdev_nvme: add support for write_zeroes 2017-08-15 15:27:09 -04:00
blob blobstore: fix issue with reading in superblobid from disk 2017-08-11 12:58:47 -04:00
blobfs blobfs, tree: fix a bug in spdk_tree_insert_buffer 2017-08-15 16:36:41 -04:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: Move asynchronous module init to event_copy 2017-06-20 13:46:37 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env/vtophys: vtophys functions will now return error codes 2017-08-10 13:32:36 -04:00
event app: move the core usage display after DPDK init 2017-08-08 20:39:07 -04:00
ioat env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
iscsi iscsi: free strings in construct_target_node RPC 2017-08-09 13:24:40 -04:00
json json: add function to write UTF-16LE strings 2017-07-12 18:12:52 -04:00
jsonrpc jsonrpc: simplify by removing use of poll() 2017-07-18 17:00:54 -04:00
log jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
nbd nbd: allow exporting more than one NBD at once 2017-08-07 17:56:21 -04:00
net jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
nvme nvme: always construct the ctrlr in NVMe-oF for secondary process 2017-08-14 16:04:14 -04:00
nvmf nvmf: spdk_nvmf_rdma_qpair now holds a pointer to its port 2017-08-14 15:45:43 -04:00
rocksdb rocksdb: remove the hard-coded reactor mask 2017-08-15 16:09:03 -04:00
rpc rpc: add get_rpc_methods RPC call 2017-08-01 13:43:14 -04:00
scsi scsi: allow zero-length read and write 2017-08-15 15:26:37 -04:00
trace include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
ut_mock tests: macro-ize the creation and use of wrappers and stubs 2017-07-05 12:00:34 -04:00
util util/fd: drop fallback from spdk_fd_get_blocklen() 2017-08-11 19:36:30 -04:00
vhost vhost: added spdk_vhost_dev_has_feature 2017-08-15 15:28:17 -04:00
Makefile nbd: move nbd code to a new library 2017-08-02 13:27:21 -04:00