Skip to contentSkip to conversation

lib: reorder prop_local_percpu to remove 64 bit alignment padding

PATCH Richard Kennedy 1 participant 1 message Jul 11, 2011

lore
Share & tools
lore
#0 lore 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.

---
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

include/linux/proportions.h +1 -1
index cf793bb..9168cb0 100644
@@ -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 */
 };