xfs: kill struct xfs_dir2_block
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:35:32 +0000 (14:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:35:32 +0000 (14:35 +0200)
commita64b04179735de6bfd9f00c130a68ed7f20d18ef
tree36fe9aec30550aed6aecf6c2734fa365d1e7c83f
parent4f6ae1a49ed5c81501d6f7385416bb4e07289e99
xfs: kill struct xfs_dir2_block

Remove the confusing xfs_dir2_block structure.  It is supposed to describe
an XFS dir2 block format btree block, but due to the variable sized nature
of almost all elements in it it can't actuall do anything close to that
job.  In addition to accessing the fixed offset header structure it was
only used to get a pointer to the first dir or unused entry after it,
which can be trivially replaced by pointer arithmetics on the header
pointer.  For most users that is actually more natural anyway, as they
don't use a typed pointer but rather a character pointer for further
arithmetics.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_dir2_block.c
fs/xfs/xfs_dir2_block.h
fs/xfs/xfs_dir2_sf.c
This page took 0.041983 seconds and 5 git commands to generate.