xfs: refactor xfs_ialloc_btree.c to support multiple inobt numbers
authorBrian Foster <bfoster@redhat.com>
Thu, 24 Apr 2014 06:00:50 +0000 (16:00 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Apr 2014 06:00:50 +0000 (16:00 +1000)
commit57bd3dbe4059c6fff7e39927e5aa789dfb2585b9
tree6f122a620ec1c9a26aa733c67269097f8b48b893
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
xfs: refactor xfs_ialloc_btree.c to support multiple inobt numbers

The introduction of the free inode btree (finobt) requires that
xfs_ialloc_btree.c handle multiple trees. Refactor xfs_ialloc_btree.c
so the caller specifies the btree type on cursor initialization to
prepare for addition of the finobt.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc_btree.c
fs/xfs/xfs_ialloc_btree.h
fs/xfs/xfs_itable.c