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: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/379290 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
8d6f9503ef
commit
c644fb069f
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user