]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: decouple inode and bmap btree header files
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:40:29 +0000 (06:40 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 13 Nov 2013 17:02:09 +0000 (11:02 -0600)
commit34b8c759723757e5b4a4c9da6c3a790eb405000f
tree98cca0785a63218fa9370769a260b57451abcac5
parent32390f05a6a2c1a30b5f05141d705fb7c686079c
xfs: decouple inode and bmap btree header files

Currently the xfs_inode.h header has a dependency on the definition
of the BMAP btree records as the inode fork includes an array of
xfs_bmbt_rec_host_t objects in it's definition.

Move all the btree format definitions from xfs_btree.h,
xfs_bmap_btree.h, xfs_alloc_btree.h and xfs_ialloc_btree.h to
xfs_format.h to continue the process of centralising the on-disk
format definitions. With this done, the xfs inode definitions are no
longer dependent on btree header files.

The enables a massive culling of unnecessary includes, with close to
200 #include directives removed from the XFS kernel code base.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
include/xfs_alloc_btree.h
include/xfs_bmap_btree.h
include/xfs_btree.h
include/xfs_format.h
include/xfs_ialloc.h
include/xfs_ialloc_btree.h
include/xfs_inode_fork.h