From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752215Ab1LSEBc (ORCPT ); Sun, 18 Dec 2011 23:01:32 -0500 Received: from out02.mta.xmission.com ([166.70.13.232]:39902 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab1LSEBa (ORCPT ); Sun, 18 Dec 2011 23:01:30 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Greg Kroah-Hartman Cc: , Tejun Heo , Mikulas Patocka Date: Sun, 18 Dec 2011 20:03:08 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=in02.mta.xmission.com;;;ip=98.207.153.68;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+ba0Z9NOy1/so8A9XI9n8av5ds7341OjQ= X-SA-Exim-Connect-IP: 98.207.153.68 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * 1.5 XMNoVowels Alpha-numberic number with no vowels * -3.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa03 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.4 UNTRUSTED_Relay Comes from a non-trusted relay X-Spam-DCC: XMission; sa03 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Greg Kroah-Hartman X-Spam-Relay-Country: ** Subject: [PATCH 0/4] sysfs: Reduce the size of sysfs_dirent X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Fri, 06 Aug 2010 16:31:04 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After throwing rb_trees at the problem sysfs_dirent increased in size by 6 pointers, or 48 bytes. Since the point of having struct sysfs_dirent is to keep the size down increasing in size that much seems unfortunate. The following patches attack this problem and if I have counted right reduce the size of sysfs_dirent by 4 pointers on 64bit. Not quite where we were but reducing sysfs_dirent by 32bytes to 104 bytes is an improvement. Eric