From 274980704e8be7849d5dd768cd6c136d06695a4e Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Mon, 2 Jul 2018 14:13:41 -0700 Subject: [PATCH] bdev: reorder items in spdk_bdev. This fills two holes and allows the structure to fit neatly into 4 cachelines. Change-Id: Ie175fec2656ff0b60a8c6fcbc26b1a66a8bf5162 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/417604 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- include/spdk/bdev_module.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/spdk/bdev_module.h b/include/spdk/bdev_module.h index a69ec0286..5aca11d81 100644 --- a/include/spdk/bdev_module.h +++ b/include/spdk/bdev_module.h @@ -228,15 +228,15 @@ struct spdk_bdev { /** Unique product name for this kind of block device. */ char *product_name; + /** write cache enabled, not used at the moment */ + int write_cache; + /** Size in bytes of a logical block for the backend */ uint32_t blocklen; /** Number of blocks */ uint64_t blockcnt; - /** write cache enabled, not used at the moment */ - int write_cache; - /** * This is used to make sure buffers are sector aligned. * This causes double buffering on writes.