xfs: refactor delalloc indlen reservation split into helper
authorBrian Foster <bfoster@redhat.com>
Tue, 15 Mar 2016 00:42:46 +0000 (11:42 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 15 Mar 2016 00:42:46 +0000 (11:42 +1100)
commita9bd24ac2becf69e896d88bf8b1b7b0f18c2157b
treeb1fa80c68b236e09ffa8cd40c36b813027c5c0ec
parentb2706a05bad36c0a826493c6ba84c8a9caf8a3ae
xfs: refactor delalloc indlen reservation split into helper

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>
fs/xfs/libxfs/xfs_bmap.c