From 9e40cade6fd6c3fd9fd8991fc3c7f1a1105f9266 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Sat, 24 Mar 2018 12:45:51 +0100 Subject: [PATCH] os/bluestore: reorder members of bluefs_extent_t to make it smaller. Signed-off-by: Radoslaw Zarzynski --- src/os/bluestore/bluefs_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/bluestore/bluefs_types.h b/src/os/bluestore/bluefs_types.h index 06cfbdbafdd62..4634be503852c 100644 --- a/src/os/bluestore/bluefs_types.h +++ b/src/os/bluestore/bluefs_types.h @@ -10,12 +10,12 @@ class bluefs_extent_t { public: - uint8_t bdev; uint64_t offset = 0; uint32_t length = 0; + uint8_t bdev; bluefs_extent_t(uint8_t b = 0, uint64_t o = 0, uint32_t l = 0) - : bdev(b), offset(o), length(l) {} + : offset(o), length(l), bdev(b) {} uint64_t end() const { return offset + length; } DENC(bluefs_extent_t, v, p) { -- 2.47.3