From: Eric Dumazet Date: Sun, 30 Oct 2005 23:02:16 +0000 (-0800) Subject: [PATCH] reduce sizeof(struct file) X-Git-Tag: v2.6.15-rc1~59^2~15^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f51201662b28dbf8c15fb7eb972bc51c6cc3fa5;p=pandora-kernel.git [PATCH] reduce sizeof(struct file) Now that RCU applied on 'struct file' seems stable, we can place f_rcuhead in a memory location that is not anymore used at call_rcu(&f->f_rcuhead, file_free_rcu) time, to reduce the size of this critical kernel object. The trick I used is to move f_rcuhead and f_list in an union called f_u The callers are changed so that f_rcuhead becomes f_u.fu_rcuhead and f_list becomes f_u.f_list Signed-off-by: Eric Dumazet Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed