fs: Remove i_cindex from struct inode
authorTheodore Ts'o <tytso@mit.edu>
Thu, 21 May 2009 20:01:00 +0000 (16:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:09 +0000 (21:36 -0400)
commit9fd5746fd3d7838bf6ff991d50f1257057d1156f
treee0afe14ea9415b0e54c40703bb44acfec100a4b3
parentebc1ac164560a241d9bf1b7519062910c3f90a01
fs: Remove i_cindex from struct inode

The only user of the i_cindex element in the inode structure is used
is by the firewire drivers.  As part of an attempt to slim down the
inode structure to save memory --- since a typical Linux system will
have hundreds of thousands if not millions of inodes cached, a
reduction in the size inode has high leverage.

The firewire driver does not need i_cindex in any fast path, so it's
simple enough to calculate when it is needed, instead of wasting space
in the inode structure.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: krh@redhat.com
Cc: stefanr@s5r6.in-berlin.de
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/ieee1394/dv1394.c
drivers/ieee1394/ieee1394_core.h
fs/char_dev.c
include/linux/cdev.h
include/linux/fs.h