* lib: reorder prop_local_percpu to remove 64 bit alignment padding
@ 2011-07-11 14:38 Richard Kennedy
0 siblings, 0 replies; only message in thread
From: Richard Kennedy @ 2011-07-11 14:38 UTC (permalink / raw)
To: Peter Zijlstra, Jens Axboe; +Cc: lkml
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 */
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-11 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11 14:38 lib: reorder prop_local_percpu to remove 64 bit alignment padding Richard Kennedy
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®