]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_bmap.c
xfs: refactor delalloc indlen reservation split into helper
authorBrian Foster <bfoster@redhat.com>
Tue, 21 Jun 2016 05:56:29 +0000 (15:56 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Jun 2016 05:56:29 +0000 (15:56 +1000)
commit01d1b7867a9c18fbac72b5a3faa71031995a5a7a
treef3757455d5b3aa9e9f4b19dcd3bb695688745bc6
parent8359e0b95c656fac8a994317586c0921478d74f3
xfs: refactor delalloc indlen reservation split into helper

Source kernel commit a9bd24ac2becf69e896d88bf8b1b7b0f18c2157b

The delayed allocation indirect reservation splitting code is not
sufficient in some cases where a delalloc extent is split in two. In
preparation for enhancements to this code, refactor the current indlen
distribution algorithm into a new helper function.

[dchinner: rename temp, temp2 variables]

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_bmap.c