Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: reorder members of bluefs_extent_t for space efficiency #21034

Merged
merged 1 commit into from Mar 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/os/bluestore/bluefs_types.h
Expand Up @@ -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) {
Expand Down