Spdk/lib/bdev/malloc
Jim Harris a0d7056f11 copy: return 0 on success and appropriate errno on failure
This code was still using an old paradigm of returning the
number of bytes associated with a successful submission.
Just return 0 on success instead - if caller needs the
number of bytes for some reason they have the information
to get it.

While here, return an appropriate negated errno where possible -
we especially want ENOMEM returned when an ioat channel runs out
of descriptors.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I5858ccd6cff916b6c80fda7d2c9fce96fb39ef89

Reviewed-on: https://review.gerrithub.io/378858
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-09-25 13:56:29 -04:00
..
bdev_malloc_rpc.c log: remove uses of SPDK_TRACE_DEBUG 2017-08-29 15:07:13 -04:00
bdev_malloc.c copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
bdev_malloc.h bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00
Makefile bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00