]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/xfs/xfs_btree.c
[XFS] make btree root in inode support generic
authorChristoph Hellwig <hch@infradead.org>
Thu, 30 Oct 2008 05:54:22 +0000 (16:54 +1100)
committerLachlan McIlroy <lachlan@sgi.com>
Thu, 30 Oct 2008 05:54:22 +0000 (16:54 +1100)
commit8186e517fab1854554c48955cdbcbb6710e7baef
treec948ac3cc49516c256ed9ab9355eb49c9f7c2a43
parentde227dd9604934d2a6d33cd332d1be431719c93e
[XFS] make btree root in inode support generic

The bmap btree is rooted in the inode and not in a disk block. Make the
support for this feature more generic by adding a btree flag to for this
feature instead of relying on the XFS_BTNUM_BMAP btnum check.

Also clean up xfs_btree_get_block where this new flag is used.

Based upon a patch from Dave Chinner.

SGI-PV: 985583

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

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Bill O'Donnell <billodo@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
fs/xfs/xfs_bmap_btree.c
fs/xfs/xfs_btree.c
fs/xfs/xfs_btree.h