xfs: cleanup xfs_bmse_shift_one goto mess
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Dec 2014 22:42:24 +0000 (09:42 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Dec 2014 22:42:24 +0000 (09:42 +1100)
commitb11bd671ba8a0268753db25684115acde57d3d32
tree8ee588f9409192aed706c00557642ad7adafce54
parent7a1df1561609c14ac457d65d9a4a2b6c0f4204ad
xfs: cleanup xfs_bmse_shift_one goto mess

xfs_bmse_shift_one() jumps around determining whether to shift or
merge, making the code flow difficult to follow. Clean it up and
use direct error returns (including XFS_WANT_CORRUPTED_RETURN) to
make the code flow better and be easier to read.

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