[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1212401245.2966.8.camel@castor.localdomain>
Date: Mon, 02 Jun 2008 11:07:25 +0100
From: Richard Kennedy <richard@....demon.co.uk>
To: gregkh <gregkh@...e.de>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH] kobject: reorder kobject to save space on 64 bit builds
reorder kobject to save space on 64 bit builds.
shrinks from 76 to 64 bytes & moves allocated kobject to a smaller
slab.
Signed-off-by: Richard Kennedy <richard@....demon.co.uk>
----
Running successfully on 2.6.26-rc2 on my desktop AMD64.
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 39e709f..07124fc 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -59,12 +59,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists