summaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2014-04-24 16:00:53 +1000
committerDave Chinner <david@fromorbit.com>2014-04-24 16:00:53 +1000
commit6dd8638e4e8764e0d6557fc62840a815a99c136d (patch)
treeec6653b8440c548bf78fe65c9d87ab920049d63a /lib/mpi/mpi-internal.h
parent0aa0a756ec255cfc8b733fe0d8993c1758b1240c (diff)
xfs: use and update the finobt on inode allocation
Replace xfs_dialloc_ag() with an implementation that looks for a record in the finobt. The finobt only tracks records with at least one free inode. This eliminates the need for the intra-ag scan in the original algorithm. Once the inode is allocated, update the finobt appropriately (possibly removing the record) as well as the inobt. Move the original xfs_dialloc_ag() algorithm to xfs_dialloc_ag_inobt() and fall back as such if finobt support is not enabled. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions