summaryrefslogtreecommitdiffstats
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
authorRichard Kennedy2008-06-02 12:07:25 +0200
committerGreg Kroah-Hartman2008-07-22 06:54:56 +0200
commita231934bdf086a4fefc0df06e669499125a9db6f (patch)
tree1851034ec06e50a4d7f49184ffd2cba883414ce0 /include/linux/kobject.h
parentUIO: minor style and comment fixes (diff)
downloadkernel-qcow2-linux-a231934bdf086a4fefc0df06e669499125a9db6f.tar.gz
kernel-qcow2-linux-a231934bdf086a4fefc0df06e669499125a9db6f.tar.xz
kernel-qcow2-linux-a231934bdf086a4fefc0df06e669499125a9db6f.zip
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>
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r--include/linux/kobject.h2
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;