bdev: change bdev_io flush "length" to "len"

This makes it consistent it with other parts of this structure.

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

Reviewed-on: https://review.gerrithub.io/375494
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2017-08-23 16:33:20 -07:00 committed by Ben Walker
parent 900aef2c99
commit 2a75143441
6 changed files with 6 additions and 6 deletions

View File

@ -306,7 +306,7 @@ struct spdk_bdev_io {
uint64_t offset; uint64_t offset;
/** Represents the number of bytes to be flushed, starting at offset. */ /** Represents the number of bytes to be flushed, starting at offset. */
uint64_t length; uint64_t len;
} flush; } flush;
struct { struct {
/* The NVMe command to execute */ /* The NVMe command to execute */

View File

@ -256,7 +256,7 @@ static int _bdev_aio_submit_request(struct spdk_io_channel *ch, struct spdk_bdev
bdev_aio_flush((struct file_disk *)bdev_io->bdev->ctxt, bdev_aio_flush((struct file_disk *)bdev_io->bdev->ctxt,
(struct bdev_aio_task *)bdev_io->driver_ctx, (struct bdev_aio_task *)bdev_io->driver_ctx,
bdev_io->u.flush.offset, bdev_io->u.flush.offset,
bdev_io->u.flush.length); bdev_io->u.flush.len);
return 0; return 0;
case SPDK_BDEV_IO_TYPE_RESET: case SPDK_BDEV_IO_TYPE_RESET:

View File

@ -1037,7 +1037,7 @@ spdk_bdev_flush(struct spdk_bdev_desc *desc, struct spdk_io_channel *ch,
bdev_io->ch = channel; bdev_io->ch = channel;
bdev_io->type = SPDK_BDEV_IO_TYPE_FLUSH; bdev_io->type = SPDK_BDEV_IO_TYPE_FLUSH;
bdev_io->u.flush.offset = offset; bdev_io->u.flush.offset = offset;
bdev_io->u.flush.length = length; bdev_io->u.flush.len = length;
spdk_bdev_io_init(bdev_io, bdev, cb_arg, cb); spdk_bdev_io_init(bdev_io, bdev, cb_arg, cb);
rc = spdk_bdev_io_submit(bdev_io); rc = spdk_bdev_io_submit(bdev_io);

View File

@ -312,7 +312,7 @@ static int _bdev_malloc_submit_request(struct spdk_io_channel *ch, struct spdk_b
return bdev_malloc_flush((struct malloc_disk *)bdev_io->bdev->ctxt, return bdev_malloc_flush((struct malloc_disk *)bdev_io->bdev->ctxt,
(struct malloc_task *)bdev_io->driver_ctx, (struct malloc_task *)bdev_io->driver_ctx,
bdev_io->u.flush.offset, bdev_io->u.flush.offset,
bdev_io->u.flush.length); bdev_io->u.flush.len);
case SPDK_BDEV_IO_TYPE_UNMAP: case SPDK_BDEV_IO_TYPE_UNMAP:
return bdev_malloc_unmap((struct malloc_disk *)bdev_io->bdev->ctxt, return bdev_malloc_unmap((struct malloc_disk *)bdev_io->bdev->ctxt,

View File

@ -398,7 +398,7 @@ _bdev_nvme_submit_request(struct spdk_io_channel *ch, struct spdk_bdev_io *bdev_
return bdev_nvme_flush((struct nvme_bdev *)bdev_io->bdev->ctxt, return bdev_nvme_flush((struct nvme_bdev *)bdev_io->bdev->ctxt,
(struct nvme_bdev_io *)bdev_io->driver_ctx, (struct nvme_bdev_io *)bdev_io->driver_ctx,
bdev_io->u.flush.offset, bdev_io->u.flush.offset,
bdev_io->u.flush.length); bdev_io->u.flush.len);
case SPDK_BDEV_IO_TYPE_NVME_ADMIN: case SPDK_BDEV_IO_TYPE_NVME_ADMIN:
return bdev_nvme_admin_passthru((struct nvme_bdev *)bdev_io->bdev->ctxt, return bdev_nvme_admin_passthru((struct nvme_bdev *)bdev_io->bdev->ctxt,

View File

@ -288,7 +288,7 @@ static int _bdev_rbd_submit_request(struct spdk_io_channel *ch, struct spdk_bdev
ch, ch,
bdev_io, bdev_io,
bdev_io->u.flush.offset, bdev_io->u.flush.offset,
bdev_io->u.flush.length); bdev_io->u.flush.len);
default: default:
return -1; return -1;
} }