]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b5441dd829d8b43f7b1f47d78a53cad82c7a63c
tree8552e8a82fc1c770a2fa8f5575ae24f1234bfd21
parentb42c1156e1898e3ee8009a96a9e13eb7d85ea76d
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