From: Brian Foster Date: Tue, 23 Sep 2014 05:39:04 +0000 (+1000) Subject: xfs: refactor single extent shift into xfs_bmse_shift_one() helper X-Git-Tag: fixes-against-v3.18-rc2~104^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a979bdfea10a61dce0055b4d416d640f4f5f495e;p=pandora-kernel.git 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 Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed