[XFS] Make use of the init-once slab optimisation.
authorDavid Chinner <david@fromorbit.com>
Thu, 30 Oct 2008 05:11:59 +0000 (16:11 +1100)
committerLachlan McIlroy <lachlan@sgi.com>
Thu, 30 Oct 2008 05:11:59 +0000 (16:11 +1100)
commit07c8f67587724b417f60bffb32c448dd94647b54
tree01f6cf39be93dd5515481d09d282c503e05ef79f
parente946217e4fdaa67681bbabfa8e6b18641921f750
[XFS] Make use of the init-once slab optimisation.

To avoid having to initialise some fields of the XFS inode on every
allocation, we can use the slab init-once feature to initialise them. All
we have to guarantee is that when we free the inode, all it's entries are
in the initial state. Add asserts where possible to ensure debug kernels
check this initial state before freeing and after allocation.

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31925a

Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_itable.c