xfs: refactor allocation tree fixup code
authorBrian Foster <bfoster@redhat.com>
Mon, 14 Oct 2019 00:10:34 +0000 (17:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 16:04:58 +0000 (09:04 -0700)
commit4a65b7c2c72c3940a4472c49743fdb65a03a9935
tree8552e8a82fc1c770a2fa8f5575ae24f1234bfd21
parentfec0afdaf498a9a923c3688cc9f9c91a73f5bcd8
xfs: refactor allocation tree fixup code

Both algorithms duplicate the same btree allocation code. Eliminate
the duplication and reuse the fallback algorithm codepath.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_alloc.c