summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2014-09-23 05:39:04 (GMT)
committerDave Chinner <david@fromorbit.com>2014-09-23 05:39:04 (GMT)
commita979bdfea10a61dce0055b4d416d640f4f5f495e (patch)
treeef48ae3ce031f6133fa2c9c56d01f6d31fe4d953 /fs/xfs/xfs_bmap_util.c
parentddb19e3180fa42362a04e86771d758be1de0bb13 (diff)
downloadlinux-a979bdfea10a61dce0055b4d416d640f4f5f495e.tar.xz
xfs: refactor single extent shift into xfs_bmse_shift_one() helper
xfs_bmap_shift_extents() has a variety of conditions and error checks that make the logic difficult to follow and indent heavy. Refactor the loop body of this function into a new xfs_bmse_shift_one() helper. This simplifies the error checks, eliminates index decrement on merge hack by pushing the index increment down into the helper, and makes the code more readable by reducing multiple levels of indentation. This is a code refactor only. The behavior of extent shift and collapse range is not modified. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
0 files changed, 0 insertions, 0 deletions