Commit 2a751434 authored by Jim Harris's avatar Jim Harris Committed by Ben Walker
Browse files

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



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

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

Reviewed-on: https://review.gerrithub.io/375494


Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 900aef2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ struct spdk_bdev_io {
			uint64_t offset;

			/** Represents the number of bytes to be flushed, starting at offset. */
			uint64_t length;
			uint64_t len;
		} flush;
		struct {
			/* The NVMe command to execute */
+1 −1
Original line number Diff line number Diff line
@@ -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,
			       (struct bdev_aio_task *)bdev_io->driver_ctx,
			       bdev_io->u.flush.offset,
			       bdev_io->u.flush.length);
			       bdev_io->u.flush.len);
		return 0;

	case SPDK_BDEV_IO_TYPE_RESET:
+1 −1
Original line number Diff line number Diff line
@@ -1037,7 +1037,7 @@ spdk_bdev_flush(struct spdk_bdev_desc *desc, struct spdk_io_channel *ch,
	bdev_io->ch = channel;
	bdev_io->type = SPDK_BDEV_IO_TYPE_FLUSH;
	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);

	rc = spdk_bdev_io_submit(bdev_io);
+1 −1
Original line number Diff line number Diff line
@@ -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,
					 (struct malloc_task *)bdev_io->driver_ctx,
					 bdev_io->u.flush.offset,
					 bdev_io->u.flush.length);
					 bdev_io->u.flush.len);

	case SPDK_BDEV_IO_TYPE_UNMAP:
		return bdev_malloc_unmap((struct malloc_disk *)bdev_io->bdev->ctxt,
+1 −1
Original line number Diff line number Diff line
@@ -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,
				       (struct nvme_bdev_io *)bdev_io->driver_ctx,
				       bdev_io->u.flush.offset,
				       bdev_io->u.flush.length);
				       bdev_io->u.flush.len);

	case SPDK_BDEV_IO_TYPE_NVME_ADMIN:
		return bdev_nvme_admin_passthru((struct nvme_bdev *)bdev_io->bdev->ctxt,
Loading