]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: refactor allocation tree fixup code
authorBrian Foster <bfoster@redhat.com>
Thu, 16 Jan 2020 22:13:32 +0000 (17:13 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Jan 2020 22:13:32 +0000 (17:13 -0500)
commit46f7e3231e35d3169a233dbf56aa98a8d0a516f4
tree9e3b229620bc71d4bf86c6cfab14f16ef380acac
parent3ca39168fc16cf2f34484d636cc68e71057c48d2
xfs: refactor allocation tree fixup code

Source kernel commit: 4a65b7c2c72c3940a4472c49743fdb65a03a9935

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c