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

osd/PGLog.h: reorder bool fields in PGLog struct #6279

Merged
merged 1 commit into from Oct 19, 2015

Conversation

Projects
None yet
3 participants
@branch-predictor
Copy link
Member

branch-predictor commented Oct 15, 2015

Move bool fields to the bottom (end) of the struct so they are next to
each other. On x86/x64, this change saves 16 bytes per single PGLog struct
due to less bytes wasted for field alignment.

Signed-off-by: Piotr Dałek piotr.dalek@ts.fujitsu.com

osd/PGLog.h: reorder bool fields in PGLog struct
Move bool fields to the bottom (end) of the struct so they are next to
each other. On x86/x64, this change saves 16 bytes per single PGLog struct
due to less bytes wasted for field alignment.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>

@ghost ghost added cleanup core labels Oct 16, 2015

liewegas added a commit that referenced this pull request Oct 19, 2015

Merge pull request #6279 from branch-predictor/bp-reorder-pglog-fields
osd/PGLog.h: reorder bool fields in PGLog struct

Reviewed-by: Sage Weil <sage@redhat.com>

@liewegas liewegas merged commit ba5100d into ceph:master Oct 19, 2015

@branch-predictor branch-predictor deleted the branch-predictor:bp-reorder-pglog-fields branch Nov 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.