Commit c644fb06 authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Jim Harris
Browse files

bdev: reorder bdev_io->flush fields



num_blocks and offset_blocks are present in most
other bdev_io types with num_blocks being
before the offset_blocks. bdev_io->flush was
outstanding here.

The fields has been reordered in preparation
to unifying many bdev_io types. See next patches
for details.

Change-Id: I7f12bfdc88a87ab263107d0d0d1b30b848702bcc
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/379290


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 8d6f9503
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -312,11 +312,11 @@ struct spdk_bdev_io {
			uint64_t offset_blocks;
		} unmap;
		struct {
			/** Represents starting offset in blocks of the range to be flushed. */
			uint64_t offset_blocks;

			/** Represents the number of blocks to be flushed, starting at offset_blocks. */
			uint64_t num_blocks;

			/** Represents starting offset in blocks of the range to be flushed. */
			uint64_t offset_blocks;
		} flush;
		struct {
			/* The NVMe command to execute */