From: Richard Kennedy <richard@rsk.demon.co.uk>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>,
Jens Axboe <jaxboe@fusionio.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: lib: reorder prop_local_percpu to remove 64 bit alignment padding
Date: Mon, 11 Jul 2011 15:38:34 +0100 [thread overview]
Message-ID: <1310395114.3058.16.camel@castor.rsk> (raw)
Reorder prop_local_percpu to remove 8 bytes of alignment padding in 64
bit builds, and therefore shrink backing_dev_info & request_queue by 8
bytes.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
---
patch against v3.0-rc6
compiled & tested on x86_64
I'm not entirely sure which tree this should go through but as it
indirectly removes padding from request_queue I guessed Jens tree?
get_maintainers doesn't know either, it thinks I should send it to
myself :)
regards
Richard
diff --git a/include/linux/proportions.h b/include/linux/proportions.h
index cf793bb..9168cb0 100644
--- a/include/linux/proportions.h
+++ b/include/linux/proportions.h
@@ -56,8 +56,8 @@ struct prop_local_percpu {
/*
* snapshot of the last seen global state
*/
- int shift;
unsigned long period;
+ int shift;
spinlock_t lock; /* protect the snapshot state */
};
reply other threads:[~2011-07-11 14:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1310395114.3058.16.camel@castor.rsk \
--to=richard@rsk.demon.co.uk \
--cc=a.p.zijlstra@chello.nl \
--cc=jaxboe@fusionio.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®