diff options
authorRichard Kennedy <richard@rsk.demon.co.uk>2008-06-02 11:07:25 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 21:54:56 -0700
commita231934bdf086a4fefc0df06e669499125a9db6f (patch)
parent6d8333c24d41637f0f847f6e17032189dae08c02 (diff)
kobject: reorder kobject to save space on 64 bit builds
reorder kobject to save space on 64 bit builds. shrinks from 72 to 64 bytes & moves allocated kobject to a smaller slab. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index d542faa6cb47..60f0d418ae32 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -58,12 +58,12 @@ enum kobject_action {
struct kobject {
const char *name;
- struct kref kref;
struct list_head entry;
struct kobject *parent;
struct kset *kset;
struct kobj_type *ktype;
struct sysfs_dirent *sd;
+ struct kref kref;
unsigned int state_initialized:1;
unsigned int state_in_sysfs:1;
unsigned int state_add_uevent_sent:1;

Privacy Policy